Skip to main content

Module argon

Module argon 

Source

Re-exportsยง

use std::fmt::Display; ๐Ÿ”’
use argon2::Algorithm; ๐Ÿ”’
use argon2::Argon2; ๐Ÿ”’
use argon2::Error as Argon2Error; ๐Ÿ”’
use argon2::Params; ๐Ÿ”’
use argon2::PasswordHasher; ๐Ÿ”’
use argon2::PasswordVerifier; ๐Ÿ”’
use argon2::Version; ๐Ÿ”’
use argon2::password_hash::phc::Salt; ๐Ÿ”’
use rand::random; ๐Ÿ”’
use smallstr::SmallString; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::err; ๐Ÿ”’
use crate::format_small_string; ๐Ÿ”’
use crate::implement; ๐Ÿ”’

Structsยง

Cost
Argon2id cost parameters for hashing a new password.

Functionsยง

hasher ๐Ÿ”’
map_err ๐Ÿ”’
password
Hashes a plaintext password with Argon2id at the given cost.
verify_password
Verifies a plaintext password against an encoded Argon2 password hash.

Type Aliasesยง

PhcString
A PHC-formatted Argon2id password hash.