MySQL Forums
Forum List  »  Security

AES_ENCRYPT / AES_DECRYPT key_str length question
Posted by: Kot Demon
Date: September 10, 2010 01:00AM

quick ref:

AES_ENCRYPT(str,key_str)
AES_DECRYPT(crypted_str,key_str)

e.g:
AES_ENCRYPT('text','password')
AES_ENCRYPT(crypted_str,'password')

My question is very naive sort!
Even though it's said Key is of 128 bits length(used in block ciphering) why is it "key_str" length can be anything? (excerpt: The input arguments may be any length)

how is the actual key generated from this "key_str"?



Edited 1 time(s). Last edit at 09/10/2010 06:11AM by Kot Demon.

Options: ReplyQuote


Subject
Views
Written By
Posted
AES_ENCRYPT / AES_DECRYPT key_str length question
6875
September 10, 2010 01:00AM


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.