1. Home
  2. Docs
  3. Security
  4. Encryption/Decryption


Encryption data is used to protect the raw data before it is construct to “data” parameter inside request value. First, to construct an encryption/decryption key, the following mechanism is required.

Encrypted key = SHA256 (API Secret)

The following algorithm is used to perform an encryption data

ModeECB (Electronic Code Book)
PaddingPKCS#5 or PKCS#7

The request raw parameters (param) in Json format are encrypted by using the encrypted key through the AES/ECB/PKCS5Padding algorithm, and the ciphertext is converted into hexadecimal characters to be the value of the Encryted data.

Encrypted Data = aesEcbPkcs5Padding (param, Encrypted key)

Sequence diagram to explain how it works :-

How can we help?