开发者

Using a "slow" hash function with fewer iterations vs. a "fast" one with more?

开发者 https://www.devze.com 2023-03-15 13:31 出处:网络
Any benefit to using a slower hash function 开发者_C百科with fewer iterations vs. a fast one with more?Assuming you are attempting to protect a password..You want something that\'s a better hash. And

Any benefit to using a slower hash function 开发者_C百科with fewer iterations vs. a fast one with more? Assuming you are attempting to protect a password..


You want something that's a better hash. And that's not necessarily received by more iterations -- the algorithm itself has to be better.


when protecting password simply use good hash function (for example SHA2). Good reference is NIST Recommendation for Applications Using Approved Hash Algorithms.
when its about "proof of work" you may consider multiple hashing

0

精彩评论

暂无评论...
验证码 换一张
取 消