pub fn hash(password: &str, work_factor: WorkFactor) -> Result<Hash, HashError>
Creates a new password hash.