pub enum PasswordHash {
Sha256 {
salt: Vec<u8>,
hash: [u8; 32],
},
Sha512 {
salt: Vec<u8>,
hash: [u8; 64],
},
Pbkdf2Sha256 {
salt: Vec<u8>,
iterations: u32,
hash: [u8; 32],
},
Pbkdf2Sha512 {
salt: Vec<u8>,
iterations: u32,
hash: [u8; 64],
},
}Expand description
A hashed password, with parameters.
Variants§
Trait Implementations§
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