Struct sodiumoxide::crypto::pwhash::argon2id13::HashedPassword [−][src]
Expand description
HashedPassword
is a password verifier generated from a password
A HashedPassword
is zero-terminated, includes only ASCII characters and can
be conveniently stored into SQL databases and other data stores. No
additional information has to be stored in order to verify the password.
Implementations
from_slice()
creates an object from a byte slice
This function will fail and return None
if the length of
the byte-slice isn’t equal to the length of the object
Trait Implementations
fn deserialize<D>(deserializer: D) -> Result<HashedPassword, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<HashedPassword, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Allows a user to access the byte contents of an object as a slice.
WARNING: it might be tempting to do comparisons on objects
by using x[a..b] == y[a..b]
. This will open up for timing attacks
when comparing for example authenticator tags. Because of this only
use the comparison functions exposed by the sodiumoxide API.
Allows a user to access the byte contents of an object as a slice.
WARNING: it might be tempting to do comparisons on objects
by using x[a..] == y[a..]
. This will open up for timing attacks
when comparing for example authenticator tags. Because of this only
use the comparison functions exposed by the sodiumoxide API.
Allows a user to access the byte contents of an object as a slice.
WARNING: it might be tempting to do comparisons on objects
by using x[] == y[]
. This will open up for timing attacks
when comparing for example authenticator tags. Because of this only
use the comparison functions exposed by the sodiumoxide API.
Allows a user to access the byte contents of an object as a slice.
WARNING: it might be tempting to do comparisons on objects
by using x[..b] == y[..b]
. This will open up for timing attacks
when comparing for example authenticator tags. Because of this only
use the comparison functions exposed by the sodiumoxide API.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for HashedPassword
impl Send for HashedPassword
impl Sync for HashedPassword
impl Unpin for HashedPassword
impl UnwindSafe for HashedPassword
Blanket Implementations
Mutably borrows from an owned value. Read more