toPem method

String toPem({
  1. bool toPkcs1 = false,
})

Implementation

String toPem({bool toPkcs1 = false}) {
  String asn1 = toASN1(toPkcs1: toPkcs1);
  String label = toPkcs1 ? 'RSA PUBLIC KEY' : 'PUBLIC KEY';
  return PemPart(label, asn1).toString();
}