sometimes the bits are repeated to increase the size
Line 2:
Line 2:
== Method ==
== Method ==
−
Hashes are computed by churning down a large size byte array until it reaches the target size. If the initial byte array length is not divisible 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.
+
Hashes are computed by churning down a large size byte array until it reaches the target size. If the initial byte array length is not divisible by the target size then the initial array is buffered with blank bits or the provided bits are repeated, 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.