deriveKeyWithSalt

Derive a cryptographic key from a password using an existing salt.

Use this method when decrypting data that was encrypted with a previously derived key.

Return

The derived key as a SecretKey.

Parameters

password

The password or passphrase to derive from.

salt

The salt used during the original derivation.


Derive a key from a string password with existing salt.