MySQL Forums
Forum List  »  Security

Re: aes_encrypt() key_str: What are good values to use?
Posted by: Ashley Sewell
Date: December 03, 2006 09:01PM

I think you'll find that 128 bit encryption doesn't mean the maximum key size is 128 bits (16 bytes) as well.

You can verify this with the following statement:

select if(aes_encrypt('plain text','1234567890123456')=aes_encrypt('plain text','12345678901234567'),'16 char max','17 works fine') AS output

+---------------+
| output |
+---------------+
| 17 works fine |
+---------------+
1 row in set (0.00 sec)

Ashley

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: aes_encrypt() key_str: What are good values to use?
3426
December 03, 2006 09:01PM


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.