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.
The following algorithm is used to perform an encryption data
|Mode||ECB (Electronic Code Book)|
|Padding||PKCS#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.
Sequence diagram to explain how it works :-