encodePrivateKeyToPKCS8PemString method

String encodePrivateKeyToPKCS8PemString()

Encode the privateKey to PKCS8 pem format https://en.wikipedia.org/wiki/PKCS_8

Implementation

String encodePrivateKeyToPKCS8PemString() {
  return privateKey!.toPem(toPkcs1: false);
}