toPem method
Implementation
@override
String toPem() {
final sequence = ASN1Sequence();
sequence.add(ASN1Integer(version));
sequence.add(ASN1Integer(n));
sequence.add(ASN1Integer(e));
sequence.add(ASN1Integer(d));
sequence.add(ASN1Integer(p));
sequence.add(ASN1Integer(q));
sequence.add(ASN1Integer(exponent1));
sequence.add(ASN1Integer(exponent2));
sequence.add(ASN1Integer(coefficient));
return SSHPem('RSA PRIVATE KEY', {}, sequence.encodedBytes).encode(64);
}