aes_encrypt() key_str: What are good values to use?
Hi all,
I'm looking at using aes_encrypt() to store user passwords in a tinyblob column. However, the mysql docs don't explain exactly how aes_encrypt() uses the key_str argument, so I don't know what a "good value" to use would be.
For example, if I pass in a 21-character key string, will aes_encrypt() use the entire string, or will it use the leftmost 16 characters (128 bits in an 8-bit chacacter set), or will it use the rightmost 16 characters, or will it do something entirely different?
I don't want to end up using a key_str that produces weaker encryption. Of course, I'm pretty much an encryption n00b, so maybe none if this matters and I can just use whatever key_str I want and everything will be fine :)
Any suggestions?
-Paul
Subject
Views
Written By
Posted
aes_encrypt() key_str: What are good values to use?
6915
November 30, 2006 08:24AM
3427
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.