Answer the question
In order to leave comments, you need to log in
Why doesn't the crypt function work correctly?
it so happened that the project got, where the password is encoded through the crypt function. Having tested, I found a bug, if it can be considered so.
$salt = substr('test123', 0, 2);
echo (crypt('testtest123', $salt)).'<br>';
echo (crypt('testtest', $salt)).'<br>';
echo (crypt('testtest1', $salt)).'<br>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question