aesDecode
Table of Contents
Overview
The aesDecode function takes encryption_key and encrypted_value as arguments, and returns the decrypted (original) text using AES (Advanced Encryption Standard).
Note: The decryption is performed using 256 bits.
Return Type
- TEXT
Syntax
<variable> = zoho.encryption.aesDecode(<encryption_key>, <encrypted_value>, <encryption_iv>);
where,
Parameter | Data type | Description |
<variable> | TEXT | Variable which will contain the decrypted text value. |
<encryption_key> | TEXT | The key used during encryption of the text. |
<encrypted_value> | TEXT | The encrypted text that need to be decrypted. |
<encryption_iv> (optional) | TEXT | An initialization vector that offers stronger security for the encryption. Note:
|
Examples
info zoho.encryption.aesDecode("passkey", "yf/u6N0HjKWXFFHIEKzG23+CM+BoL4RBPNb4mc0G3hw5q6xPe9KSpUd62Z5sjjSE"); // Returns "This is a secret" info zoho.encryption.aesDecode("passkey", "5GzwCtoMcLE83Mmt4okldDoddwF7E07kKqSQHLSBPSw=", "0000000000000000"); // Returns "This is a secret"
where:
passkey
This is the encryption key
5GzwCtoMcLE83Mmt4okldDoddwF7E07kKqSQHLSBPSw=
(AND)
yf/u6N0HjKWXFFHIEKzG23+CM+BoL4RBPNb4mc0G3hw5q6xPe9KSpUd62Z5sjjSE
These are the encrypted values
0000000000000000
This is the encryption IV