I am trying to authenticate Drupal 7 passwords with Delphi 10.
I am mimicking the _password_crypt() function which uses the PHP hash( ,,TRUE) function.
The hashing process is repeated and starts with a string and switched to bytes;
$hash = hash($algo, $salt . $password, TRUE);
do {
$hash = hash($algo, $hash . $password, TRUE);
} while (--$count);
$len = strlen($hash);
$output = $setting . _password_base64_encode($hash, $len);
Can this be replicated with THashSHA2? If so, can you outline the approach?