the key to encode
the rng to use
the password to use for encryption
number of time to run the password derivation
the name of the desired password-based encryption algorithm; if empty ("") a reasonable (portable/secure) default will be chosen.
encrypted key in binary BER form
Encrypt a key using PKCS #8 encryption