Struct argon2::Argon2 [−][src]
pub struct Argon2<'key> { /* fields omitted */ }
Expand description
Implementations
Create a new Argon2 context.
Create a new Argon2 context.
This is supported on crate feature alloc
only.
alloc
only.Hash a password and associated parameters into the provided output buffer.
Hash a password and associated parameters into the provided output buffer.
This method takes an explicit memory_blocks
parameter which allows
the caller to provide the backing storage for the algorithm’s state:
- Users with the
alloc
feature enabled can useArgon2::hash_password_into
to have it allocated for them. no_std
users on “heapless” targets can use an array of theBlock
type to stack allocate this buffer.
Trait Implementations
Simple API for computing a PasswordHash
from a password and
salt value. Read more
Compute a PasswordHash
from the provided password using an
explicit set of customized algorithm parameters as opposed to the
defaults. Read more
Auto Trait Implementations
impl<'key> RefUnwindSafe for Argon2<'key>
impl<'key> UnwindSafe for Argon2<'key>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compute this password hashing function against the provided password using the parameters from the provided password hash and see if the computed output matches. Read more