encodePkcs1PrivateKey method

String encodePkcs1PrivateKey(
  1. String passphrase
)

Encode into the PKCS#1 Private Key format.

Implementation

String encodePkcs1PrivateKey(String passphrase) {
  final b = Pkcs1RsaPrivateKey(modulus!, privateExponent!, p!, q!).encode();

  return TextualEncoding(_rsaPrivatePkcs1label, b).encode();
}