loadPrivateKeyFromPKCS1PemString method

dynamic loadPrivateKeyFromPKCS1PemString(
  1. String pem
)

Load the privateKey from a PKCS1 encoded pem string

Implementation

loadPrivateKeyFromPKCS1PemString(String pem) {
  assert(
      privateKey == null, 'KeyPair already has a privateKey already loaded');
  privateKey = ninja.RSAPrivateKey.fromPEM(pem);
}