poprishchin has asked for the wisdom of the Perl Monks concerning the following question:
If there is a good reason for this happening, can someone suggest a way for me to confirm the old password in order to change the new one?#From my first script, test data; result = reu3tDNEHBSyc CryptPasswd("username","password"); #From my second script, test data; result = secGBN1BHq1FA CryptPasswd("username","password"); sub CryptPasswd { my ($self) = shift; my ($passwd, $salt) = @_; if ($salt) { # Make sure only use 2 chars $salt = substr ($salt, 0, 2); } else { ($salt = substr ($0, 0, 2)) =~ tr/:/C/; } return crypt ($passwd, $salt); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: encryption confusion
by tachyon (Chancellor) on Aug 20, 2004 at 04:32 UTC | |
by gaal (Parson) on Aug 20, 2004 at 06:55 UTC | |
by tachyon (Chancellor) on Aug 20, 2004 at 08:23 UTC | |
by bgreenlee (Friar) on Aug 20, 2004 at 08:50 UTC | |
by bgreenlee (Friar) on Aug 20, 2004 at 08:02 UTC | |
by gaal (Parson) on Aug 20, 2004 at 20:52 UTC | |
|
Re: encryption confusion
by Gilimanjaro (Hermit) on Aug 20, 2004 at 11:09 UTC | |
|
Re: encryption confusion
by Random_Walk (Prior) on Aug 20, 2004 at 08:56 UTC |