[][src]Function passwords::hasher::identify_bcrypt_format

pub unsafe fn identify_bcrypt_format<T: ?Sized + AsRef<[u8]>, S: AsRef<str>>(
    password: &T,
    hashed_format: S
) -> bool

Identify a password (the null-terminated byte will not be added automatically) by using the bcrypt-hashed data in Modular Crypt Format we've stored before.

Use this function carefully because it assumes its input parameters are always correct.

Typically, the unidentified password should be hashed on the client-side instead of using this function on the server-side.