Do any of the common hash algorithms define an "out of band" hash code, i.e. one that is guaranteed to never be the result of the algorithm?
Neither the MD* or SHA-* family of algorithms has an out of band hash value.
If you wish to implement this yourself, you can use the following logic:
In pseudocode:
OutOfBandHash = 0xdeadbeefdeadbeefdeadbeefdeadbeef
h = hash(stuff)
if h = OutOfBandHash
h = OutOfBandHash + 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With