Argon2Parameters

sealed external interface Argon2Parameters(source)

Properties

Link copied to clipboard
abstract var associatedData: Any?

OPTIONAL, Additional data to be added to the hash, functionally equivalent to salt or secret, but meant for non-random data. If used, must have a length not greater than 2**32-1 bytes.

Link copied to clipboard
abstract var memory: Double

REQUIRED, memory cost in 1KiB blocks. Must be greater than 8 * parallelism and less than 2**32-1. The actual number of blocks is rounded down to the nearest multiple of 4 * parallelism.

Link copied to clipboard
abstract var message: Any

REQUIRED, this is the password for password hashing applications of Argon2.

Link copied to clipboard
abstract var nonce: Any

REQUIRED, must be at least 8 bytes long. This is the salt for password hashing applications of Argon2.

Link copied to clipboard
abstract var parallelism: Double

REQUIRED, degree of parallelism determines how many computational chains (lanes) can be run. Must be greater than 1 and less than 2**24-1.

Link copied to clipboard
abstract var passes: Double

REQUIRED, number of passes (iterations). Must be greater than 1 and less than 2**32-1.

Link copied to clipboard
abstract var secret: Any?

OPTIONAL, Random additional input, similar to the salt, that should NOT be stored with the derived key. This is known as pepper in password hashing applications. If used, must have a length not greater than 2**32-1 bytes.

Link copied to clipboard
abstract var tagLength: Double

REQUIRED, the length of the key to generate. Must be greater than 4 and less than 2**32-1.