Argon2Hasher
class Argon2Hasher(saltLength: Int = DEFAULT_SALT_LENGTH, hashLength: Int = DEFAULT_HASH_LENGTH, parallelism: Int = DEFAULT_PARALLELISM, memory: Int = DEFAULT_MEMORY, iterations: Int = DEFAULT_ITERATIONS) : PasswordEncoderHasher
Hasher that uses the Argon2id algorithm, the first choice recommended by OWASP, salting each value individually.
Encoded values follow the PHC string format and are 97 characters long with the default parameters, varying with saltLength, hashLength, and the printed length of the remaining parameters.
This requires BouncyCastle (org.bouncycastle:bcprov-jdk18on) on the runtime classpath, which exposed-crypt does not depend on.
Parameters
saltLength
Length in bytes of the randomly generated salt
hashLength
Length in bytes of the generated hash
parallelism
Number of lanes used by the algorithm
memory
Amount of memory in kibibytes used by the algorithm
iterations
Number of passes over the memory
Throws
If BouncyCastle is not on the runtime classpath.