Skip to main content

PasswordHash

Type Alias PasswordHash 

Source
pub type PasswordHash = PasswordHash;
👎Deprecated since 0.6.0: import as password_hash::phc::PasswordHash instead
Available on crate feature phc only.
Expand description

DEPRECATED: import this as password_hash::phc::PasswordHash.

Aliased Type§

pub struct PasswordHash {
    pub algorithm: Ident,
    pub version: Option<u32>,
    pub params: ParamsString,
    pub salt: Option<Salt>,
    pub hash: Option<Output>,
}

Fields§

§algorithm: Ident

Password hashing algorithm identifier.

This corresponds to the <id> field in a PHC string, a.k.a. the symbolic name for the function.

§version: Option<u32>

Optional version field.

This corresponds to the <version> field in a PHC string.

§params: ParamsString

Algorithm-specific parameters.

This corresponds to the set of $<param>=<value>(,<param>=<value>)* name/value pairs in a PHC string.

§salt: Option<Salt>

[Salt] string for personalizing a password hash output.

This corresponds to the <salt> value in a PHC string.

§hash: Option<Output>

Password hashing function [Output], a.k.a. hash/digest.

This corresponds to the <hash> output in a PHC string.