-
-
Save Treeston/34d9249fb467dddc11b2568e74f8cb1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function VerifySRP6Login($username, $password, $salt, $verifier) | |
{ | |
// re-calculate the verifier using the provided username + password and the stored salt | |
$checkVerifier = CalculateSRP6Verifier($username, $password, $salt); | |
// compare it against the stored verifier | |
return ($verifier === $checkVerifier); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment