I have an issue using DES_DECRYPT
& DES_ENCRYPT
in MySQL.
When I run the following select clause in phpmyadmin
SELECT DES_DECRYPT(DES_ENCRYPT('mytext','mypassword'),'mypassword');
It returns
DES_DECRYPT(DES_ENCRYPT('mytext','mypassword'),'mypassword') 6d7974657874
Normally it should return mytext again, right?
When I run it inside php, it works like a charm. Anyone knows what I did wrong here ?