Maximum length for MD5 input/output

前端 未结 7 2144
情歌与酒
情歌与酒 2020-12-02 11:45

What is the maximum length of the string that can have md5 hashed? Or: If it has no limit, and if so what will be the max length of the md5 output value?

7条回答
  •  天命终不由人
    2020-12-02 12:20

    The algorithm has been designed to support arbitrary input length. I.e you can compute hashes of big files like ISO of a DVD...

    If there is a limitation for the input it could come from the environment where the hash function is used. Let's say you want to compute a file and the environment has a MAX_FILE limit.

    But the output string will be always the same: 32 hex chars (128 bits)!

提交回复
热议问题