derive Key
Derive a cryptographic key from a password.
Generates a new random salt and derives a key using PBKDF2.
Return
A pair of (derived key, salt). The salt must be stored alongside encrypted data for later decryption.
Parameters
password
The password or passphrase to derive from.
Derive a key from a string password (convenience method).
The password string is immediately converted to a char array and the conversion is not cleared from memory. For maximum security, use the CharArray overload directly.