rsaPublicKeyFromPem static method

RSAPublicKey rsaPublicKeyFromPem(
  1. String pem
)

Decode a RSAPublicKey from the given pem String.

Implementation

static RSAPublicKey rsaPublicKeyFromPem(String pem) {
  final Uint8List bytes = getBytesFromPEMString(pem);
  return rsaPublicKeyFromDERBytes(bytes);
}