secretDerivation
abstract fun secretDerivation(digest: CryptographyAlgorithmId<Digest>, iterations: Int, outputSize: BinarySize, salt: ByteArray): SecretDerivation(source)
open fun secretDerivation(digest: CryptographyAlgorithmId<Digest>, iterations: Int, outputSize: BinarySize, salt: ByteString): SecretDerivation(source)
Returns a SecretDerivation that derives secrets of the given outputSize from a password using the digest hash function over iterations HMAC rounds.
The salt prevents rainbow table attacks. Higher iterations values increase resistance to brute-force attacks at the cost of derivation time.