crypto_x 0.0.1 copy "crypto_x: ^0.0.1" to clipboard
crypto_x: ^0.0.1 copied to clipboard

retractedoutdated

Advanced RSA based on pointycastle

crypto_x #

Pub support

Advanced RSA based on pointycastle.

Features #

  • RSA with PKCS1 and OAEP encoding.
  • OAEP only supports encryption with public key and decryption with private key. For details, see OAEPEncoding

Getting started #

Add the package to your pubspec.yaml:

dependencies:
  crypto_x: <latest_version>

Usage #

    var privateRSA = RSA(
        privateKey: 'privatePKCS8Key');
    var publicRSA = RSA(
        publicKey: 'publicPKCS8Key');
    CryptoSignature signature = privateRSA.encrypt(PlainBytes.fromString('hello world'), usePublic: false);
    String ciphertext = signature.base64;
    PlainBytes plainBytes = publicRSA.decrypt(signature);
    String plainText = plainBytes.toString();
0
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

Advanced RSA based on pointycastle

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, flutter, pointycastle

More

Packages that depend on crypto_x