Skip to content
pubscout

rsa_pkcs

2.1.0, released 3 years ago by an unverified publisher

Privacy-Enhanced Mail (PEM) parser for RSA, PKCS#1, PKCS#8, and X.509 formats

WASM-ready
$ flutter pub add rsa_pkcs
Source repository

What it does

Parses PEM-encoded files to extract RSA public keys, private keys, and X.509 certificates. It supports PKCS#1 and PKCS#8 formats without requiring the pointycastle package.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse RSA public or private keys in PEM, PKCS#1, or PKCS#8 formats
  • You need to read X.509 certificates in a Dart application

Skip it when

  • You need full cryptographic operations like encryption, decryption, or signing (this package only parses the keys)

Strengths

  • Supports multiple standards (PEM, PKCS#1, PKCS#8, X.509)
  • Uses built-in BigInt from dart:core

Weaknesses

  • Does not provide cryptographic functions out of the box
  • Limited to RSA keys and X.509 certificates

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
final parser = RSAPKCSParser();
final pair = parser.parsePEM(pemString);
final privateKey = pair.private;

Alternatives

Packages that do the same job and could replace rsa_pkcs.

  • pem

    PEM encoding and decoding of textual keys and certificates following RFC 7468.

  • pkcs7

    Parse, generate, and verify PKCS#7 messages and X509 certificates

Works with

Packages commonly used together with rsa_pkcs: ones it builds on, ones built on it, and its own family.