checkRSAEncryptedPassword() public méthode

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
 /**
  * @test
  */
 public function checkRSAEncryptedPasswordReturnsFalseForAnIncorrectPassword()
 {
     $encryptedPassword = $this->rsaWalletService->encryptWithPublicKey('wrong password', $this->keyPairUuid);
     $passwordHash = 'af1e8a52451786a6b3bf78838e03a0a2';
     $salt = 'a709157e66e0197cafa0c2ba99f6e252';
     $this->assertFalse($this->rsaWalletService->checkRSAEncryptedPassword($encryptedPassword, $passwordHash, $salt, $this->keyPairUuid));
 }