Skip to content

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

License

Notifications You must be signed in to change notification settings

geGao123/simple_rsa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple RSA Encryption

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

Support only ANDROID and IOS

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 37.4%
  • Kotlin 24.1%
  • Swift 22.0%
  • Ruby 14.6%
  • Objective-C 1.9%