pub struct HashOpts {
pub iterations: NonZeroU32,
pub salt: [u8; 32],
}
Expand description
The options for hashing a password
Fields§
§iterations: NonZeroU32
The number of iterations to use for PBKDF2
salt: [u8; 32]
The salt to use for PBKDF2. It is up to the caller to ensure that however the salt is generated, it is cryptographically secure.
Auto Trait Implementations§
impl Freeze for HashOpts
impl RefUnwindSafe for HashOpts
impl Send for HashOpts
impl Sync for HashOpts
impl Unpin for HashOpts
impl UnwindSafe for HashOpts
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