[CryptoAPI] Continue to use Platform Key
Forge component by Ricardo Silva
Application Type
Traditional Web

Hello

We are upgrading to OS 11 from OS 10 and it seems we have to upgrade to Crypto 2.x where GetPrivateKey is not available anymore.

If I understand correctly GetPrivateKey gets the platform key used by outsystems. How can I continue to use the platform key with version 2.x of CryptoAPI? 

Thank you very much

Hello Fabian,


In the newest version of CryptoAPI you can use the RSA_NewKey function to generate a private key and it will be used in combination with the RSA_GetPublicKey to encrypt/decrypt

So, instead of using the old GenerateAESKey function you will need to use the RSA_NewKey and update your logic a bit

Regards,

Bogdan

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