Decrypt hash string from String.GetHashCode?

前端 未结 4 1840
深忆病人
深忆病人 2021-01-14 22:09

From this sample code from MSDN http://msdn.microsoft.com/en-us/library/system.string.gethashcode.aspx

The hash code for \"abc\" is: 536991770

But how to con

4条回答
  •  暖寄归人
    2021-01-14 22:50

    The is no way to get value from the hashcode. See hash-function definition. Hash values are not used to uniquely identify the original value, have values are not unique for each type of the input value.

    A hash function may map two or more keys to the same hash value. In many applications, it is desirable to minimize the occurrence of such collisions, which means that the hash function must map the keys to the hash values as evenly as possible.

提交回复
热议问题