Skip to main content

Crate compact_argon2

Crate compact_argon2 

Source

Structs§

Hash
An argon2id hash.
Params
argon2 parameters.

Constants§

OUTPUT_SIZE
Serialized size of the [Hash] struct. The hex variant is of course twice this amount.

Functions§

hash
Hash a byte array with default argon2id params.
hash_with_memory
Hash a byte array with default argon2id params, and a specified allocation. See argon2::Argon2::hash_password_into_with_memory for implementation.
verify
Verify the given password against a [Hash] with the included argon2id params.
verify_with_memory
Verify the given password against a [Hash] with the included argon2id params, and a specified allocation. See argon2::Argon2::hash_password_into_with_memory for implementation.