gpt4 book ai didi

c# - 从 String.GetHashCode 解密哈希字符串?

转载 作者:行者123 更新时间:2023-11-30 18:49:04 25 4
gpt4 key购买 nike

来自 MSDN 的示例代码 http://msdn.microsoft.com/en-us/library/system.string.gethashcode.aspx

“abc”的哈希码是:536991770

但是如何将“536991770”转换回“abc”呢?

最佳答案

无法从哈希码中获取值。参见 hash-function定义。哈希值不用于唯一标识原始值,对于每种类型的输入值,哈希值不是是唯一的。

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.

关于c# - 从 String.GetHashCode 解密哈希字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4062391/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com