Enum eznacl::HashStrength
source · [−]pub enum HashStrength {
Basic,
Extra,
Secret,
Extreme,
}
Expand description
The HashStrength type specifies how strong of a password hash is requested. Despite the term ‘Basic’, it provides the recommended 1 second processing time on a 4th-generation Intel i5 and an acceptable processing time on computers with less or more processor power. The other levels increase the memory cost, increasing processing time without undue strain on weaker hardware.
Variants
Basic
Extra
Secret
Extreme
Trait Implementations
sourceimpl Debug for HashStrength
impl Debug for HashStrength
sourceimpl PartialEq<HashStrength> for HashStrength
impl PartialEq<HashStrength> for HashStrength
sourcefn eq(&self, other: &HashStrength) -> bool
fn eq(&self, other: &HashStrength) -> bool
impl StructuralPartialEq for HashStrength
Auto Trait Implementations
impl RefUnwindSafe for HashStrength
impl Send for HashStrength
impl Sync for HashStrength
impl Unpin for HashStrength
impl UnwindSafe for HashStrength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more