pub struct Argon2 { /* private fields */ }Expand description
Derives a key using Argon2id (V2, the default).
Implementations§
Source§impl Argon2
impl Argon2
Sourcepub fn with_params(params: Argon2Parameters) -> Self
pub fn with_params(params: Argon2Parameters) -> Self
Creates an Argon2 key derivation object with custom Argon2Parameters.
The caller is responsible for managing the salt (use params.set_salt() if needed).
Sourcepub fn parameters(self) -> DerivationParameters
pub fn parameters(self) -> DerivationParameters
Returns a DerivationParameters capturing the current Argon2 settings.
Useful for passing custom parameters to crate::password_hash::hash_password_with_parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argon2
impl RefUnwindSafe for Argon2
impl Send for Argon2
impl Sync for Argon2
impl Unpin for Argon2
impl UnsafeUnpin for Argon2
impl UnwindSafe for Argon2
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