Struct libpasta::hashing::Output [−][src]
Represents the output of a password hashing algorithm.
Fields
alg: Algorithm
The algorithm used
salt: Vec<u8>
The salt
hash: Vec<u8>
The hash output
Methods
impl Output
[src]
impl Output
pub fn verify(&self, password: &str) -> bool
[src]
pub fn verify(&self, password: &str) -> bool
Verifies that the supplied password matches the hashed value.
Trait Implementations
impl<'de> Deserialize<'de> for Output
[src]
impl<'de> Deserialize<'de> for Output
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Output
[src]
impl Serialize for Output
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Debug for Output
[src]
impl Debug for Output