14
Views
1
Comments
RSA decryption error "input too large for RSA cipher."
Question
Application Type
Reactive

Hi my friends!

I'm dealing with something weird here...

I have this code in C#, to decrypt some string that comes from a JWT:

And this code works perfectly in .net!

Then I uploaded an extension of this to outsystems 11, but when I call this method from the extension, it always returns "input too large for RSA cipher.".

So, I'm wondering that there is something happening between the original code and the extension on outsystems... because it always work on visual studio, but inside outsystems app it's not working.

Anyone of you can understand this issue?

Thanks in advance!!

2024-07-31 11-32-34
ndy

Dear @Diogo Barbosa .

RSA encryption can only handle a certain size of data, and the maximum size depends on the key size you're using. In .NET, the default key size is often large enough to handle most data. However, if you're using a smaller key size or if OutSystems has any specific limitations on the key size, this could lead to the error you're seeing. 

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