Skip to content

Encrypts a value using AES encryption.

func.aes_encrypt(<str>, <key>)
func.aes_encrypt('hello', 'secret_key')
┌──────────┐
│ (binary) │
└──────────┘
AES_ENCRYPT(<str>, <key>)
SELECT HEX(AES_ENCRYPT('hello', 'secret_key'));
┌──────────┐
│ A7B4C... │
└──────────┘