export_private¶
In std/crypto.
fn export_private<F : KeyFormat, A : KeyAlgorithm>(self: PrivateKey<A>, format: Type<F>, *, passphrase: String = "") : String
The private key material of self written in format, encrypted under
passphrase where one is given: PKCS #8 with scrypt and AES-256-CBC for
Pem, bcrypt-pbkdf and AES-256-CTR for OpenSsh. The result is a
String, and no longer redacted.