Static ReadonlyINDEXThe method discriminant that opens the Argon2id parameter array on the wire.
StaticfromParameters with a fresh random salt unless one is given.
Returns the method index for CBOR encoding.
Derive a key from the secret and encrypt the content key.
Derive a key from the secret and decrypt the content key.
Get string representation.
Convert to CBOR.
Format: [3, Salt] (Salt is encoded as a tagged value — #6.40018(bytes))
Convert to CBOR binary data.
StaticfromFrom the CBOR array, as the reference's TryFrom<CBOR> (a dcbor error):
every failure is Cbor with the bare message. The index element is
read as a usize (with dcbor's negative wrap) and its value ignored;
the fixed-width fields wrap the same way.
Argon2id parameters for password-based key derivation.
This is the recommended method for password-based key derivation as it provides the best protection against both GPU cracking and side-channel attacks.