in reply to Re^10: monastery mark-upedness (privacy)
in thread monastery mark-upedness
You could get the benefit of a peer reviewed algorithm by using some secret salt (which was suggested by Fletch in Re^6: monastery mark-upedness (brute force)).
use Digest::SHA1 qw( sha1_hex ); my $ip_address = shift; my $secret_salt = q{you don't know this part}; my $published_hash = sha1_hex( $ip_address . $secret_salt );
Someone who has access to the source could launch a dictionary attack now, but that would be true if the source had a roll-your-own algorithm too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: monastery mark-upedness (privacy)
by goibhniu (Hermit) on Mar 21, 2008 at 20:54 UTC |