Encryption md5中的aes 16字节大小

Encryption md5中的aes 16字节大小,encryption,cryptography,aes,Encryption,Cryptography,Aes,我在试着理解一些代码 The 32-byte AES encryption key and the 16-byte IV are both derived from the password and the salt like so: salted = password . salt # . is the concatenation of the two key1 = md5(salted) # key1 is 16 bytes long key2 = md5

我在试着理解一些代码

The 32-byte AES encryption key and the 16-byte IV are both derived from   the password and the salt like so:
salted = password . salt     # . is the concatenation of the two
key1   = md5(salted)         # key1 is 16 bytes long
key2   = md5(key1 . salted)  # key2 is 16 bytes long
iv     = md5(key2 . salted)  # this is the 16-byte IV
aeskey = key1 . key2         # this is the 32-byte AES key

md5(salted)如何可以是16字节?即使md5是32字节,md5也有128位(16字节)的输出,并且总是有。当以十六进制打印时是32个字符,但这是因为每两个十六进制数字代表一个字节。

你从哪里听说MD5是32个字节?在你最喜欢的搜索引擎中输入“MD5”,你会发现它会产生一个128位的散列,即16字节。