I am trying to understand how MySQL converts the "key_str" (AES
password) argument in functions "AES_ENCRYPT(str,key_str)" or
"AES_DECRYPT(crypt_str,key_str)" if the length of the "key_str"
characters is > 16 characters. I am trying to write parallel Java AES
functions that work exactly as the MySQL AES functions.
to bytes and then uses those bytes for AES ciphering. If the size of
the converted bytes is < 16 bytes (32 hex chars or 128 bits), the
converted bytes value is padded with 0x00 (2 zeros in hex) until 128
bits are reached. For example, if you supply value "password" to the