Pbkdf2Hasher

constructor(secret: CharSequence = "", saltLength: Int = DEFAULT_SALT_LENGTH, iterations: Int = DEFAULT_ITERATIONS, algorithm: Pbkdf2PasswordEncoder.SecretKeyFactoryAlgorithm = SecretKeyFactoryAlgorithm.PBKDF2WithHmacSHA256)

Parameters

secret

Optional secret, sometimes called a pepper, mixed into every hash. Unlike the salt it is not stored alongside the hash, so it has to be kept and supplied identically in order to verify existing values.

saltLength

Length in bytes of the randomly generated salt

iterations

Number of hashing iterations to perform

algorithm

Pseudorandom function to apply on each iteration