Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Ecrypting passwordsby hardburn (Abbot) |
on Nov 04, 2003 at 20:28 UTC ( [id://304529]=note: print w/replies, xml ) | Need Help?? |
If you put the exact same data into SHA1 (or any other reasonable hashing algorithm), the exact same hash value will come out. It's only when you have different data (even as small as one bit) that a cryptographic hash will give a different output. Non-cryptographic hashing algorithms (such as the one used by Perl's hash data structure) may produce collisions for different data, which usually need to be handled by the program in question. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|