Source Code:
(back to article)
<?php $password = "password123"; $hashed_password = crypt($password, "abcd"); if (crypt($password, $hashed_password) == $hashed_password) { echo "Password is valid!"; } else { echo "Invalid password."; } ?>
Result:
Report an issue