pub struct PasswordHash {
pub algorithm: String,
pub params: BTreeMap<String, String>,
pub salt: Zeroizing<Vec<u8>>,
pub hash: Zeroizing<Vec<u8>>,
}
Expand description
A complete password hash with algorithm, parameters, salt, and hash
Fields§
§algorithm: String
The algorithm identifier
params: BTreeMap<String, String>
Algorithm-specific parameters
salt: Zeroizing<Vec<u8>>
The salt used for hashing
hash: Zeroizing<Vec<u8>>
The password hash
Implementations§
Trait Implementations§
Source§impl Clone for PasswordHash
impl Clone for PasswordHash
Source§fn clone(&self) -> PasswordHash
fn clone(&self) -> PasswordHash
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for PasswordHash
impl Display for PasswordHash
Source§impl FromStr for PasswordHash
impl FromStr for PasswordHash
Source§impl PartialEq for PasswordHash
impl PartialEq for PasswordHash
Source§impl Zeroize for PasswordHash
impl Zeroize for PasswordHash
impl Eq for PasswordHash
impl StructuralPartialEq for PasswordHash
Auto Trait Implementations§
impl Freeze for PasswordHash
impl RefUnwindSafe for PasswordHash
impl Send for PasswordHash
impl Sync for PasswordHash
impl Unpin for PasswordHash
impl UnwindSafe for PasswordHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more