function aes_encrypt and aes_decrypt
Posted: 01. February 2006 11:37
I try to use this 2 functions, but I have a fatal error : "undefined function".
Which Library must I use ?
Which Library must I use ?
https://community.apachefriends.org/f/
https://community.apachefriends.org/f/viewtopic.php?f=16&t=15846
E:\xampp\mysql\bin>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 5.0.18
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SELECT AES_ENCRYPT('text', 'password');
+---------------------------------+
| AES_ENCRYPT('text', 'password') |
+---------------------------------+
| ÷¢¤¿_À°-J/¬+TfÇD |
+---------------------------------+
1 row in set (0.15 sec)
mysql> SELECT AES_DECRYPT('÷¢¤¿_À°-J/¬+TfÇD', 'password');
+---------------------------------------------+
| AES_DECRYPT('÷¢¤¿_À°-J/¬+TfÇD', 'password') |
+---------------------------------------------+
| text |
+---------------------------------------------+
1 row in set (0.00 sec)
mysql> quit
Bye
E:\xampp\mysql\bin>