MD5 is 128 bits but why is it 32 characters? Ask Question

MD5 is 128 bits but why is it 32 characters? Ask Question

I read some docs about md5, it said that its 128 bits, but why is it 32 characters? I can't compute the characters.

  • 1 byte is 8 bits
  • if 1 character is 1 byte
  • then 128 bits is 128/8 = 16 bytes right?

EDIT:

SHA-1 produces 160 bits, so how many characters are there?

ベストアンサー1

16 進数表現で 32 文字、つまり 1 バイトあたり 2 文字です。

おすすめ記事