Iterative Hashing

I'm just wondering if there is a reason why some libraries (be it any language) use iterative hashing so that the hashed data is encoded in hexadecimal and re-paraphrased instead of rewriting the actual binary output?

+3
source share
2 answers

Read this page and especially the sections at the end about iterative hashing and double hashing http://hungred.com/useful-information/enhance-security-hash-function-web-development/

I assume the version of the tl partitions; dr will say at the end: “So avoid double hashing and go for iterative hashing. In addition, hashing twice with the same algorithm is considered suboptimal.”

0
source

This is done to introduce an additional step to protect against a hash, which may begin to produce the same or similar output if iteratively applied directly to the result of the same hash. This additional step is independent of the implementation of the hash and acts as another step in the re-hash itself that will not hurt. Such precautions are not necessary for reliable hashes - but you never know beforehand if any hash algorithm has an unknown flaw.

-1
source

Source: https://habr.com/ru/post/1726706/


All Articles