Checks if the given encrypted password is correct by
comparing it's md5 hash. The salt is appended to the decrypted password string before hashing.
public checkRSAEncryptedPassword ( string $encryptedPassword, string $passwordHash, string $salt, string $fingerprint ) : boolean | ||
$encryptedPassword | string | The received, RSA encrypted password to check |
$passwordHash | string | The md5 hashed password string (md5(md5(password) . salt)) |
$salt | string | The salt used in the md5 password hash |
$fingerprint | string | The fingerprint to identify the private key (RSA public key fingerprint) |
Résultat | boolean | TRUE if the password is correct |