[][src]Struct kuska_sodiumoxide::crypto::pwhash::argon2id13::HashedPassword

#[must_use]pub struct HashedPassword(pub [u8; 128]);

HashedPasswordis 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

impl HashedPassword[src]

pub fn from_slice(bs: &[u8]) -> Option<HashedPassword>[src]

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

impl AsRef<[u8]> for HashedPassword[src]

impl Clone for HashedPassword[src]

impl Copy for HashedPassword[src]

impl Debug for HashedPassword[src]

impl<'de> Deserialize<'de> for HashedPassword[src]

impl Eq for HashedPassword[src]

impl Hash for HashedPassword[src]

impl Index<Range<usize>> for HashedPassword[src]

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.

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for HashedPassword[src]

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.

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for HashedPassword[src]

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.

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for HashedPassword[src]

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.

type Output = [u8]

The returned type after indexing.

impl Ord for HashedPassword[src]

impl PartialEq<HashedPassword> for HashedPassword[src]

impl PartialOrd<HashedPassword> for HashedPassword[src]

impl Serialize for HashedPassword[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.