Choose where you’d like to start

aesDecode128

Overview

The aesDecode128 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 128 bits.

Return Type

  • TEXT

Syntax

<variable> = zoho.encryption.aesDecode128(<encryption_key>, <encrypted_value>, <encryption_iv>,  <iteration_count>);

where,

ParameterData typeDescription
<variable>TEXTVariable 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:
  • This parameter should be of 16 characters.
  • The same IV number that is used for encryption should be provided while decrypting the encrypted text.

<iteration count>

(optional)

TEXT

The number of times the function is repeatedly performed to produce the final encryption key. By default, this number is 0 if this parameter is not included.

Note: For operations that have a null <encryption_IV> input, you will encounter an execution error if the <iteration_count> exceeds 200.

Examples

info zoho.encryption.aesDecode("passkey", "yf/u6N0HjKWXFFHIEKzG23+CM+BoL4RBPNb4mc0G3hw5q6xPe9KSpUd62Z5sjjSE"); // Returns "This is a secret"

encryption = zoho.encryption.aesDecode128("passkey", "pWBt7NM4llIu0n9gES91lR5fXNaAG/mx5UNPtJY0Bv8=", "a00000000000000b", 201);
info encryption;                  // Returns "This is a secret"

where:

passkey
This is the encryption key
yf/u6N0HjKWXFFHIEKzG23+CM+BoL4RBPNb4mc0G3hw5q6xPe9KSpUd62Z5sjjSE
                    (AND)
pWBt7NM4llIu0n9gES91lR5fXNaAG/mx5UNPtJY0Bv8=
These are the encrypted values
a00000000000000b
This is the encryption IV
201
This is the iteration count

Get Started Now

Execute