I have a problem with mysql encryption, on a mysql server 5.5.38
If I do :
SELECT AES_DECRYPT(AES_ENCRYPT("test", "123"), "123");
the result is 74657374
I saw in the mysql doc that DECODE() and ENCODE() are deprecated and that we are encouraged to use AES functions :
The ENCODE() and DECODE() functions are deprecated in MySQL 5.7, will be removed in a future MySQL release, and should no longer be used. Consider using AES_ENCRYPT() and AES_DECRYPT() instead.
Note : when I use SELECT DECODE(ENCODE("test", "123"), "123"), the result is the same : 74657374