Function sodiumoxide::crypto::pwhash::scryptsalsa208sha256::pwhash [] [src]

pub fn pwhash(
    passwd: &[u8],
    OpsLimit: OpsLimit,
    MemLimit: MemLimit
) -> Result<HashedPassword, ()>

The pwhash() returns a HashedPassword which includes:

OPSLIMIT_INTERACTIVE and MEMLIMIT_INTERACTIVE are safe baseline values to use for opslimit and memlimit.

The function returns Ok(hashed_password) on success and Err(()) if it didn't complete successfully