in reply to Re: username/password validation
in thread username/password validation
From what you've told me, I can speculate that your password is 8 characters in length or longer. Crypt will only really take the first 8 characters and encrypt those; any extra characters are essentially lost in the transformation from plaintext to crypt()ed.
12345 => 123456 | not equivalent 1234567 => 12345678 | not equivalent 12345678 => 12345678901 | equivalent # the actual perl function crypt($plaintext, $salt); # is more or less equivalent to this crypt( substr($plaintext, 0, 8), substr($salt, 0, 2) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: username/password validation
by superfrink (Curate) on Dec 20, 2004 at 07:02 UTC | |
by titanic_fanataic (Acolyte) on Dec 21, 2004 at 11:45 UTC |