simple_rsa 0.0.2+1 copy "simple_rsa: ^0.0.2+1" to clipboard
simple_rsa: ^0.0.2+1 copied to clipboard

discontinued
outdated

Flutter plugin to encrypt and decrypt string with a public and a private key

Simple RSA Encryption #

Flutter plugin to encrypt, decrypt (RSA/ECB/PCSK1), verify and sign string with a public and a private key

Support for ANDROID and iOS(thanks to adlanarifzr)

Installation #

To use the plugin, add simple_rsa as a dependency in your pubspec.yaml file.

Usage #

First, add private and public key

final PUBLIC_KEY = "...";
final PRIVATE_KEY = "...";

After, you can encrypt text

final String textEncrypted = await encryptString(text, PUBLIC_KEY);

and decrypt

final String textDecrypted = await decryptString(encodedText, PRIVATE_KEY);

Example #

See the example application source for a complete sample app using the Simple RSA encryption.

Contributions #

Adlan Arif Zakaria (adlanarifzr) iOS compatibility, sign and verify method.

13
likes
0
pub points
68%
popularity

Publisher

verified publishergdifrancesco.dev

Flutter plugin to encrypt and decrypt string with a public and a private key

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_rsa