Skip to main content

hash_bytes

Function hash_bytes 

Source
pub fn hash_bytes<P: AsRef<[u8]>>(
    password: P,
    cost: u32,
) -> BcryptResult<[u8; 60]>
Expand description

Like hash, but returns the hash string as stack bytes.

ยงErrors

Same as hash.