in reply to Ecrypting passwords
crypt() is very similar to Linux passwords. I would use MD5 (better hash) or Crypt::Blowfish (reversible if you want to be able to email password reminders) but this is very simple to implement:
my $salt = 'Na'; print crypt( 'password', $salt ), $/; print "Valid" if crypt( 'password', $salt ) eq 'Na3eD25AE5/zI';
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Ecrypting passwords
by DrHyde (Prior) on Oct 06, 2003 at 08:35 UTC | |
by zakzebrowski (Curate) on Oct 06, 2003 at 11:40 UTC | |
by DrHyde (Prior) on Oct 06, 2003 at 14:01 UTC |