AES_DECRYPT
Decrypts encrypted text. So we can get back the original string. In this example string
12000
is encrypted and then decrypted back
SELECT 
    '12000' AS original_string,
    AES_ENCRYPT('12000', 'some secret key') AS encrypted_string,
    AES_DECRYPT(AES_ENCRYPT('12000', 'some secret key'), 'some secret key') decrypted_string
by Valeri Tandilashvili
4 years ago
MySQL
Encryption functions
1
Pro tip: use ```triple backticks around text``` to write in code fences