Skip to main content

verify_password_hash

Function verify_password_hash 

Source
pub fn verify_password_hash(
    stored_hash: &str,
    password: &str,
    username: Option<&str>,
) -> bool
Expand description

Verifies the native PBKDF2 or development password format without leaking timing information.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::dynamic::verify_password_hash holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::verify_password_hash(todo!(), todo!(), todo!());