Choose where you’d like to start

aesEncode

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,

ParameterData typeDescription
<variable>TEXTVariable which will contain the encrypted text.
<encryption_key>TEXT

The key used during encryption of the text.

Note:

  • The same <encryption_key> needs to be used while performing decryption.
<encryption_value>TEXTThe piece of text that needs to be encrypted.

<encryption_iv>

(optional)

TEXT

An initialization vector that offers stronger security for encryption.

Note:

  • This parameter should be of 16 characters.
  • The same IV number that is used for encryption should be provided while decrypting the encrypted text.

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

Get Started Now

Execute