use bcrypt::{hash, verify, DEFAULT_COST}; pub fn hash_password(password: &str) -> Result { hash(password, DEFAULT_COST) } pub fn verify_password(password: &str, hash: &str) -> Result { verify(password, hash) }