Integrity is used to ensure there is no modification when data is being transfer.
The mac parameter is to append the encrypted data to API Secret and perform the SHA256 algorithm to extract the digest value, lastly convert it into hexadecimal characters.
