StaticnewCreate new Argon2id parameters with default settings. Uses a random 16-byte salt.
StaticnewReturns the salt.
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]
Convert to CBOR binary data.
Staticfrom
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.