MySQL Forums
Forum List  »  Security

Re: AES_ENCRYPT / AES_DECRYPT key_str length question
Posted by: Kot Demon
Date: December 14, 2010 06:53AM

mysql> select AES_ENCRYPT ('secret', 'password');
+------------------------------------+
| AES_ENCRYPT ('secret', 'password') |
+------------------------------------+
| Ç#þL¢>ä0?iêɪ |
+------------------------------------+
1 row in set (0.00 sec)

il est binaire, conserver dans une colonne BLOB.


mysql> select AES_DECRYPT(encrypted_pass, 'password');
+-------------------------------------------------------------+
| AES_DECRYPT(encrypted_pass,'password') |
+-------------------------------------------------------------+
| secret |
+-------------------------------------------------------------+
1 row in set (0.00 sec)

nom de la colonne BLOB a été "encrypted_pass"

grâce à google translate!

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: AES_ENCRYPT / AES_DECRYPT key_str length question
3901
December 14, 2010 06:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.