Decrypt hash string from String.GetHashCode?

前端 未结 4 1841
深忆病人
深忆病人 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:41

    You cannot. Hashes are one way.

    The thing with hashes is that you loose information. Independent of the length of the string, the result is always an integer. This means e.g. that getting the has of a string of 10,000 characters will also result in an integer. It is of course impossible to get the original string back from this integer.

提交回复
热议问题