Hybrid Public Key encryption API

Stable Version 1.0.3 (Compatible with OutSystems 11)
Published on 17 Mar by 
5.0
 (2 ratings)

Hybrid Public Key encryption API

Documentation

Important notes:

Not taking into consideration the .Net Crypto service provider from .Net framework, there are still three exceptions that can be thrown from the very own Extension code:

  • An invalid RSA Padding has been provided:
    • "Unknown padding"
  • An invalid AES bit key size has been provided:
    • "Invalid bit length"
  • In any way, the ciphered message has been tampered with, making the HMACSHA256 calculated by the AES_Encrypt being different from calculated ciphered message one on the AES_Decrypt function:
    • "Decryption Failed"