generatePBKDF2DerivedKey

fun generatePBKDF2DerivedKey(password: CharArray, salt: ByteArray, keyLength: Int, iterations: Int): ByteArray

Generates a PBKDF2 derived key from a password, salt, key length and number of iterations.

Author

Marcus Cvjeticanin

Since

0.2.0

Return

a PBKDF2 derived key as ByteArray.

Parameters

password

the password used in the key generation.

salt

the salt used in the key generation.

keyLength

the length of the key.

iterations

the number of iterations.