StaticnewCreate new PBKDF2 parameters with default settings. Uses a random 16-byte salt, 100,000 iterations, and SHA-256.
StaticnewCreate PBKDF2 parameters with custom settings.
Returns the salt.
Returns the number of iterations.
Returns the hash type.
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: [1, Salt, iterations, HashType]
Convert to CBOR binary data.
Staticfrom
PBKDF2 parameters for password-based key derivation.