AES Encrypt function
The AES Encrypt function encrypts fields and content using the Advanced Encryption Standard (AES) algorithm with 128 bit strength. 128-bit encryption level requires an 8-byte key, which must be a 32-character hexadecimal string.
Parameter: data, key
Data that is passed as the input is encrypted using the AES key.
Returns: string
The encrypted content is returned and stored as a string.