the key to encode
the rng to use
the password to use for encryption
number of milliseconds 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 PEM form
Get a string containing a PEM encoded private key, encrypting it with a password.