I am want to encrypt URL parameters and want to send those in other screen.I am using RSA encryption.
And when i call decrypt function it returns error Please refere given screenshot for server action.Also using the same key to decrypt
Hello Pratap,
I hope you're doing well.
I did the same logic flow as you but I added the action "RSA_GetPublicKey" because this action returns the Public Key that you need to use as input parameter on the action "RSA_Encrypt".
You have that error on your logic because you don't have the Public Key to use on the "RSA_Encrypt" action.
This worked for me.
Let me know if this solved your situation.
Kind regards,
FC
@Fábio Miguel Ferreira Coelho
I tried your solution as well I tried to save private key in DB and while decryption perform like thisStill this error
Regarding your issue see the explanation below:
This is working for me!
Please find the OML file attached.
Let me know if you have any questions or troubles.
Thank you
Fábio Miguel Ferreira Coelho for your time.
@Pratap Singh Naruka
https://www.outsystems.com/forums/discussion/66604/how-to-use-cryptoapi/
Hi Fábio Miguel Ferreira Coelho
I have used AES Encryption-decryption method and it worked for me.Anyway thanks for your help
I'm glad I could help you.
Let me know if you have more questions or doubts regarding OS.
Have fun with OS!
Why was @Fábio Miguel Ferreira Coelho answer unmarked as the solution?
An RSA is an Asymmetric algorithm that needs a public key to encrypt and a private key to decrypt.
An AES encryption is a Symmetric Key algorithm that needs just a key (shared key) to encrypt and decrypt.
The origin of the question is about RSA and not AES.
Kind Regards,
Márcio
Because I wanted some more queries to get resolved before question thread to be completed as I am newbie to CryptoAPI compenent moreover i am aware of RSA and AES definations just needed help in hands on implementations.
Thanks for your Words.