AES_ENCRYPT
AES_ENCRYPT method is used to encrypt the given string with key using AES(Advanced Encryption Standard) Algorithm.
Syntax
AES_ENCRYPT(data, key);
Example
SELECT AES_ENCRYPT("God is Great","yahooo");
|
AES_DECRYPT
AES_DECRYPT method is used to decrypt the given encrypted data of AES_ENCRYPT method with key using AES(Advanced Encryption Standard) Algorithm.
Syntax
AES_DECRYPT(aes_encrypted data, key);
Example
SELECT AES_DECRYPT(AES_ENCRYPT("God is Great","yahooo"),"yahooo");
|