Argon2 parameters

Fields

t: u32,

A [t]ime cost, which defines the amount of computation realized and therefore the execution time, given in number of iterations.

m: u32,

A [m]emory cost, which defines the memory usage, given in kibibytes.

p: u24,

A [p]arallelism degree, which defines the number of parallel threads.

secret: ?[]const u8 = null,

The [secret] parameter, which is used for keyed hashing. This allows a secret key to be input at hashing time (from some external location) and be folded into the value of the hash. This means that even if your salts and hashes are compromised, an attacker cannot brute-force to find the password without the key.

ad: ?[]const u8 = null,

The [ad] parameter, which is used to fold any additional data into the hash value. Functionally, this behaves almost exactly like the secret or salt parameters; the ad parameter is folding into the value of the hash. However, this parameter is used for different data. The salt should be a random string stored alongside your password. The secret should be a random key only usable at hashing time. The ad is for any other data.

Functions

fn fromLimits(ops_limit: u32, mem_limit: usize) Self

Create parameters from ops and mem limits, where mem_limit given in bytes

Values

interactive_2i
undefined

Baseline parameters for interactive logins using argon2i type

interactive_2id
undefined

Baseline parameters for interactive logins using argon2id type

moderate_2i
undefined

Baseline parameters for normal usage using argon2i type

moderate_2id
undefined

Baseline parameters for normal usage using argon2id type

sensitive_2i
undefined

Baseline parameters for offline usage using argon2i type

sensitive_2id
undefined

Baseline parameters for offline usage using argon2id type