function aes_encrypt and aes_decrypt

Problems with the Windows version of XAMPP, questions, comments, and anything related.

function aes_encrypt and aes_decrypt

Postby zygwi » 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 ?
zygwi
 
Posts: 30
Joined: 11. January 2005 16:16
Location: FRANCE

Postby Wiedmann » 01. February 2006 11:45

You are talking about MySQL?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby zygwi » 01. February 2006 13:40

yes
zygwi
 
Posts: 30
Joined: 11. January 2005 16:16
Location: FRANCE

Postby Wiedmann » 01. February 2006 13:59

Hmm, here this is working correct:
Code: Select all
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>
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby zygwi » 01. February 2006 14:08

OK !
I was believed that aes_encrypt and aes_decrypt were php functions !
Thank you.
zygwi
 
Posts: 30
Joined: 11. January 2005 16:16
Location: FRANCE


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 110 guests