pub enum Variant {
Argon2d,
Argon2i,
Argon2id,
}
Expand description
The Argon2 variant.
Variants§
Argon2d
Argon2 using data-dependent memory access to thwart tradeoff attacks. Recommended for cryptocurrencies and backend servers.
Argon2i
Argon2 using data-independent memory access to thwart side-channel attacks. Recommended for password hashing and password-based key derivation.
Argon2id
Argon2 using hybrid construction.
Implementations§
source§impl Variant
impl Variant
sourcepub fn as_lowercase_str(&self) -> &'static str
pub fn as_lowercase_str(&self) -> &'static str
Gets the lowercase string slice representation of the variant.
sourcepub fn as_uppercase_str(&self) -> &'static str
pub fn as_uppercase_str(&self) -> &'static str
Gets the uppercase string slice representation of the variant.
Trait Implementations§
source§impl Ord for Variant
impl Ord for Variant
source§impl PartialOrd<Variant> for Variant
impl PartialOrd<Variant> for Variant
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more