pub enum SecurityProfile {
Standard,
Paranoid,
Test,
}Expand description
Named key-derivation cost levels. Each format version maps a profile to
its own concrete Argon2id parameters (see the per-version key modules);
the numbers below describe the current write format (v3).
Variants§
Standard
The default: the OWASP Password Storage Cheat Sheet’s recommended Argon2id configuration with the highest memory hardness of the equivalent set — 46 MiB memory, 1 iteration, parallelism 1. Fast enough for batches and small machines.
Paranoid
Maximum-cost derivation for high-value archives: 1 GiB memory, 10 iterations, parallelism 4. Needs at least 1 GiB of free RAM and takes seconds per file.
Test
For automated tests only: 1 MiB memory, 1 iteration. Insecure, and password strength checks are skipped.
Trait Implementations§
Source§impl Clone for SecurityProfile
impl Clone for SecurityProfile
Source§fn clone(&self) -> SecurityProfile
fn clone(&self) -> SecurityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecurityProfile
Source§impl Debug for SecurityProfile
impl Debug for SecurityProfile
impl Eq for SecurityProfile
Source§impl From<CliProfile> for SecurityProfile
impl From<CliProfile> for SecurityProfile
Source§fn from(profile: CliProfile) -> SecurityProfile
fn from(profile: CliProfile) -> SecurityProfile
Converts to this type from the input type.
Source§impl From<SecurityProfile> for KeyDerivationParams
impl From<SecurityProfile> for KeyDerivationParams
Source§fn from(profile: SecurityProfile) -> KeyDerivationParams
fn from(profile: SecurityProfile) -> KeyDerivationParams
Converts to this type from the input type.
Source§impl From<SecurityProfile> for KeyDerivationParams
impl From<SecurityProfile> for KeyDerivationParams
Source§fn from(profile: SecurityProfile) -> KeyDerivationParams
fn from(profile: SecurityProfile) -> KeyDerivationParams
Converts to this type from the input type.
Source§impl From<SecurityProfile> for KeyDerivationParams
impl From<SecurityProfile> for KeyDerivationParams
Source§fn from(profile: SecurityProfile) -> KeyDerivationParams
fn from(profile: SecurityProfile) -> KeyDerivationParams
Converts to this type from the input type.
Source§impl PartialEq for SecurityProfile
impl PartialEq for SecurityProfile
impl StructuralPartialEq for SecurityProfile
Auto Trait Implementations§
impl Freeze for SecurityProfile
impl RefUnwindSafe for SecurityProfile
impl Send for SecurityProfile
impl Sync for SecurityProfile
impl Unpin for SecurityProfile
impl UnsafeUnpin for SecurityProfile
impl UnwindSafe for SecurityProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more