26
Views
5
Comments
Issue to Decrypte ciper text using rsa private key
Question

Hello Team,

I want a solution to decrypt cipher text using RSA private key (.pem file) . I try to decrypt using Decrypt with RSA private key  dependencies but it's not work.


I try with customize C# code but getting error parameter is incorrect .Please provide the solution for that.

2021-10-04 07-48-45
Sebastian Krempel
Champion

Hi Digvijay,

you can use server actions of the Forge component CryptoAPI to encrypt and decrypt using RSA:

Hope this helps. Kind regards, Sebastian

UserImage.jpg
Digvijay Tambe

Hi Sebastian Krempel ,

Thanks for replay .


I try with this forge component also but getting error parameter is incorrect .


2019-01-07 16-04-16
Siya
 
MVP

The "The parameter is incorrect." error may occur if there's a padding mismatch in your encrypted text. OutSystems defaults to "OAEPSHA1" padding. If you're encountering issues, try switching to alternatives like OAEPSHA256, OAEPSHA384, or OAEPSHA512.


UserImage.jpg
Digvijay Tambe

Hi siya ,


Thanks for replay.

 OAEPSHA256, OAEPSHA384, or OAEPSHA512.  this padding is support outsystems,but PKCS_1 this padding is not available.


2019-01-07 16-04-16
Siya
 
MVP

You need to create an .net extension to handle this scenario. 

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