[−][src]Function passwords::hasher::identify_bcrypt
pub unsafe fn identify_bcrypt<T: ?Sized + AsRef<[u8]>, K: ?Sized + AsRef<[u8]>>(
cost: u8,
salt: &K,
password: &T,
hashed: &[u8]
) -> bool
Identify a password (the null-terminated byte will not be added automatically) by using the bcrypt-hashed data 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.