112
Views
3
Comments
[CryptoAPI] "The parameter is incorrect" error using RSA_Encrypt
Question
cryptoapi
Service icon
Forge asset by João Barata
Application Type
Service

Hello,

I want to encrypt a value like this "ya29.A0AVA9y1vu3s7DgfBQmJ643yc82GrMpAygGaaj4xJIobzzEShrJ9QYsQ6LrVpH54aT8QQTDtgCfLCRLzzPzO_udtpeukUatmZ7RUnnCapa0NL7KhGyGXDivRZDYLGuXFfxuarZjDqXXJ1MNn9L0ZjABPrUEx0JaCgYKATASATASFQE65dr8Kjei4rBMnWcLW_6zcablmQ0163"

I remember a year ago I could do this with Crypto API, but now I can't do it. I always get an error "The parameter is incorrect" when I use RSA_Encrypt. Other values always works and no errors raised.

Is it no longer possible to encrypt these values?

I've attached the error detail from service center.

Regards

Error detail.pdf
2019-09-23 09-06-19
Alvaro Pinilla Pedroche

Hello, performing several test I realized the action raise the error when the text length exceed 86

UserImage.jpg
Alexandra Almeida

Hello!

Is there a solution for this?

Thank you

2025-08-01 12-18-45
Patrick Langeveld

Is there an update planned to enlarge text length?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.