Function pwhash::bsdi_crypt::hash_with [] [src]

pub fn hash_with<'a, IHS, B>(param: IHS, pass: B) -> Result<String> where
    IHS: IntoHashSetup<'a>,
    B: AsRef<[u8]>, 
Deprecated since 0.2.0

: don't use this algorithm for new passwords

Hash a password with user-provided parameters.

If the param argument is a &str, it must be in the final hash format. The number of rounds and the salt are parsed out of that value. An error is returned if the salt is too short or contains an invalid character. An out-of-range rounds value will also result in an error.