Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

verify_password

Function verify_password 

Source
pub fn verify_password(
    password: impl AsRef<str>,
    password_hash: impl AsRef<str>,
) -> Result<()>
Expand description

Verify a password against its hash

§Arguments

  • password - The password to verify
  • password_hash - The stored password hash (PHC format)

§Returns

Ok(()) if password is correct, Err otherwise