rsa_cipher 1.1.4 copy "rsa_cipher: ^1.1.4" to clipboard
rsa_cipher: ^1.1.4 copied to clipboard

rsa_cipher is a powerful and easy-to-use package for RSA encryption and decryption in Dart.

Usage #

import 'package:flutter_rsa/flutter_rsa.dart';

void main() {
  // generate key
  final keyPair = RSACipher().generateKeyPair();

  // encode key to pem
  final publicKeyPem = RSACipher().encodePublicKeyToPem(keyPair.publicKey);
  final privateKeyPem =
      RSACipher().encodePrivateKeyToPem(keyPair.privateKey);

  // decode pem to key
  final publicKey = RSACipher().decodePublicKeyFromPem(publicKeyPem);
  final privateKey = RSACipher().decodePrivateKeyFromPem(privateKeyPem);
}
1
likes
0
points
311
downloads

Publisher

verified publisherwolfscream.com

Weekly Downloads

rsa_cipher is a powerful and easy-to-use package for RSA encryption and decryption in Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

asn1lib, flutter, pointycastle

More

Packages that depend on rsa_cipher