1,537 bytes added
, 22:39, January 15, 2010
In computing, a hashing algorithm is a computational process which takes an input of bytes and reduces it to a fixed length base64 string which is unique (within boundaries) to the input. Hashes are mainly used for data integrity, and with futher asymmetrical algorithms, digital signatures.
== Method ==
Hashes are computed by churning down a large size byte array until it reaches the target size. If the inital byte array length is not divisable by the target size then the initial array is buffered with blank bits to ensure the algorithm will compute down to the target length. One important characteristic of hashing algorithms is that the hash should not be reversible.
== MD5 ==
MD5 became a computing standard <ref>http://tools.ietf.org/html/rfc1321</ref> for hashing but was subsequently found to be insecure<ref>http://merlot.usc.edu/csac-f06/papers/Wang05a.pdf</ref> and was replaced with SHA1. MD5 breaks the input up into 512-bit blocks and churns it down into a 128-bit bit hash. For example, the text "The quick brown fox jumps over the lazy dog" would become (base64 encoded):
<code><pre>
50842ef1bd9a95a284b395a0f0e0e2f8
</pre></code>
== SHA1 ==
SHA (Secure Hash Algorithm) is a set of functions for hashing which fixed the problems found in MD5 and has since become the industry standard. SHA1 hashes down to a 160-bit hash. For example, the text "The quick brown fox jumps over the lazy dog" would become (base64 encoded):
<code><pre>
1305dca26f7ef6e660c5c54948c1050cc3253b18
</pre></code>
[[Category:Computers]]