use bcryp::{hash, verify, DEFAULT_COST}; pub fn bcrypt_hash(password: &str) -> Result { hash(password, 5) } pub fn bcrypt_verify(password: &str, hashed_password: &str) -> Result { verify(password, hashed_password) }