2009-05-19, 20:38
MD5 hash is 16 bytes long but because it is binary I convert it to hexadecimal string (every byte is converted to two hexadecimal characters).
For example:
Byte 0Xd5 is converted to string "d5" (two bytes), 0xff is converted to string "ff", and so on. This is also demonstrated in http://www.subtitles-on.net/?id=6 where you can see that 16 byte MD5 hash is represented as "18d5d8c1747b005aaa2800a18e81de97" (32 human readable characters).
For example:
Byte 0Xd5 is converted to string "d5" (two bytes), 0xff is converted to string "ff", and so on. This is also demonstrated in http://www.subtitles-on.net/?id=6 where you can see that 16 byte MD5 hash is represented as "18d5d8c1747b005aaa2800a18e81de97" (32 human readable characters).