Skip to content

Instantly share code, notes, and snippets.

@Treeston
Created July 28, 2020 00:53
Show Gist options
  • Select an option

  • Save Treeston/34d9249fb467dddc11b2568e74f8cb1e to your computer and use it in GitHub Desktop.

Select an option

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