DES_ENCRYPT
DES_ENCRYPT method is used to encrypt the given string with key using DES Algorithm.
Syntax
DES_ENCRYPT(data, key);
Example
SELECT DES_ENCRYPT("God is Great","yahooo");
|
DES_DECRYPT
DES_DECRYPT method is used to decrypt the given encrypted data of DES_ENCRYPT method with key using DES Algorithm.
Syntax
DES_DECRYPT(aes_encrypted data, key);
Example
SELECT DES_DECRYPT(DES_ENCRYPT("God is Great","yahooo"),"yahooo");
|