Struct pwhash::HashSetup [] [src]

pub struct HashSetup<'a> {
    pub salt: Option<&'a str>,
    pub rounds: Option<u32>,
}

Setup struct for basic hashing customization.

All implemented hash functions accept a custom salt value. If set to None, a random salt will be generated. The usage of rounds varies with the algorithm; visit the algorithm's module-level documentation for details. It's always safe to initialize rounds to None, in which case the suitable default value will be used.

Fields

Custom salt.

Number of rounds.

Trait Implementations

impl<'a> IntoBcryptSetup<'a> for HashSetup<'a>
[src]

[src]

The conversion function.

impl<'a> IntoHashSetup<'a> for HashSetup<'a>
[src]

[src]

The conversion function.