flutter_rsa 1.1.1 copy "flutter_rsa: ^1.1.1" to clipboard
flutter_rsa: ^1.1.1 copied to clipboard

RSA Encryption

Usage #

import 'package:flutter_rsa/flutter_rsa.dart';

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

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

  // decode pem to key
  final publicKey = RSAEncryption().decodePublicKeyFromPem(publicKeyPem);
  final privateKey = RSAEncryption().decodePrivateKeyFromPem(privateKeyPem);
}
1
likes
120
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

RSA Encryption

Documentation

API reference

License

unknown (license)

Dependencies

asn1lib, pointycastle

More

Packages that depend on flutter_rsa