in reply to Re: Ecrypting passwords
in thread Ecrypting passwords
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.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Ecrypting passwords
by neilwatson (Priest) on Nov 05, 2003 at 18:02 UTC | |
by hardburn (Abbot) on Nov 05, 2003 at 18:40 UTC | |
by neilwatson (Priest) on Nov 05, 2003 at 18:46 UTC | |
by hardburn (Abbot) on Nov 05, 2003 at 19:07 UTC | |
by neilwatson (Priest) on Nov 05, 2003 at 19:59 UTC |
In Section
Seekers of Perl Wisdom