Is there a way to test if a string is an MD5 hash?

前端 未结 6 931
误落风尘
误落风尘 2020-12-16 20:38

I am trying to input a text file that contains MD5 hashes and keywords (one per line) into a C# app. Is there a way to check if a string is an MD5 hash? I looked on MSDN a

6条回答
  •  醉梦人生
    2020-12-16 21:10

    A MD5 hash is a 128 bit value. It is usually represented as a byte[] with a length of 16, or as a string where each byte is represented by two hexadecimal digits. A MD5 hash has no internal structure or any kind of 'signature' that allows you detect if a 128 bit value is a MD5 hash or not.

提交回复
热议问题