AES_ENCRYPT
Learn how to use the AES_ENCRYPT cryptographic function in PlaidCloud Lakehouse. Encrypts a value using AES encryption - see syntax, examples, and output.
Encrypts a value using AES encryption.
Analyze Syntax
func.aes_encrypt(<str>, <key>)
Analyze Examples
func.aes_encrypt('hello', 'secret_key')
┌──────────┐
│ (binary) │
└──────────┘
SQL Syntax
AES_ENCRYPT(<str>, <key>)
SQL Examples
SELECT HEX(AES_ENCRYPT('hello', 'secret_key'));
┌──────────┐
│ A7B4C... │
└──────────┘