Flutter plugin to encrypt and decrypt (RSA/ECB/PCSK1) string with a public and a private key
Support only ANDROID and IOS
To use the plugin, add simple_rsa
as a
dependency in your pubspec.yaml file.
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);
See the example application source for a complete sample app using the Simple RSA encryption.