string(120) "Smarty error: [in metadata template line 13]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)"

Hash Change

This page presents a simple example of the effect of a trivial change in a document on the hash value it generates. The sentence below represents the "document" for the purposes of this demonstration.

 

"The hash values below represent this sentence as it appears both above and below the hashes - with a trivial difference (that hyphen becomes a comma in the second version) between them."

 

D7280F56C0C9E03791F5CCBAE3C7C11CEF9F7C12
E4872D1EE2CB0A3BBB9691DC799B21A69A8DB6B9

 

"The hash values below represent this sentence as it appears both above and below the hashes, with a trivial difference (that hyphen becomes a comma in the second version) between them."

 

As you can see, even a trivial change in the "document" produces major change in the hash value. This makes the point, visibly, that even closely related inputs produce dramatically different outputs from the hash functions.

 

You can test this for yourself with the Codel Document Protection Software



Previous page: Hash & Hashing
Next page: Hash Table