Decrypt hash string from String.GetHashCode?

前端 未结 4 1838
深忆病人
深忆病人 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 23:03

    You cannot,
    Even if you will have a table with all strings in the world and their hash code you wouldn't be able to achieve that since there are more string then ints (~4 billion ints) so there are several strings that result in the same hash code.

提交回复
热议问题