Skip to content

Instantly share code, notes, and snippets.

@Treeston
Created July 28, 2020 00:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Treeston/34d9249fb467dddc11b2568e74f8cb1e to your computer and use it in GitHub Desktop.
Save Treeston/34d9249fb467dddc11b2568e74f8cb1e to your computer and use it in GitHub Desktop.
<?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