aesEncode
Table of Contents
Overview
The aesEncode function takes encryption_key and encryption_value as arguments, and returns an encrypted text using AES (Advanced Encryption Standard).
Note: The encryption is performed using 256 bits.
Return Type
- TEXT
Syntax
<variable> = zoho.encryption.aesEncode(<encryption_key>, <encryption_value>, <encryption_iv>);
where,
Parameter | Data type | Description |
<variable> | TEXT | Variable which will contain the encrypted text. |
<encryption_key> | TEXT | The key used during encryption of the text. Note:
|
<encryption_value> | TEXT | The piece of text that needs to be encrypted. |
<encryption_iv> (optional) | TEXT | An initialization vector that offers stronger security for encryption. Note:
|
Examples
info zoho.encryption.aesEncode("passkey","Confidential details"); // Returns "F0JOCSWN0Eb2Y//llSoROcsQxHihYnMwCuJSywFaaigEJzQdjnznq7+rSUXy6JlG"
info zoho.encryption.aesEncode("passkey","Confidential details","0000000000000000"); // Returns "AR+ygx+et18UNeIltGh82NBgPQx6Y0hWbEcgN3NVbJA="
where:
passkey
This is the encryption key
Confidential details
This is the value to be encrypted
0000000000000000
This is the encryption IV