Skip to content

This package helps to encryption and decryption with or without secret key.

License

Notifications You must be signed in to change notification settings

PaulineMoovency/encrypt_decrypt_plus

 
 

Repository files navigation

encrypt_decrypt_plus

This package helps to encryption and decryption with or without secret key.

Using

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile and web development, and a full API reference.

Installation

First, add encrypt_decrypt_plus as a dependency in your pubspec.yaml file.

In your flutter project add the dependency:

dependencies:
  ...
  encrypt_decrypt_plus:

For help getting started with Flutter, view the online documentation.

Example

Please follow this example here.

XOR Encryption and Decryption

  1. With Secret Key
  • Method 1
Cipher cipher = Cipher(secretKey: "datadirr");
String encryptTxt = cipher.xorEncode("Hello datadirr");
String decryptTxt = cipher.xorDecode(encryptTxt);
  • Method 2
Cipher cipher = Cipher();
String encryptTxt = cipher.xorEncode("Hello datadirr", secretKey: "datadirr");
String decryptTxt = cipher.xorDecode(encryptTxt, secretKey: "datadirr");
  • Method 3
String encryptTxt = Cipher().xorEncode("Hello datadirr", secretKey: "datadirr");
String decryptTxt = Cipher().xorDecode(encryptTxt, secretKey: "datadirr");
  • Method 4
String encryptTxt = Cipher(secretKey: "datadirr").xorEncode("Hello datadirr");
String decryptTxt = Cipher(secretKey: "datadirr").xorDecode(encryptTxt);
  1. Without Secret Key
  • Method 1
Cipher cipher = Cipher();
String encryptTxt = cipher.xorEncode("Hello datadirr");
String decryptTxt = cipher.xorDecode(encryptTxt);
  • Method 2
String encryptTxt = Cipher().xorEncode("Hello datadirr");
String decryptTxt = Cipher().xorDecode(encryptTxt);

JWT token decode

JWT.decode("jwt token");

About

This package helps to encryption and decryption with or without secret key.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 35.7%
  • CMake 29.6%
  • Dart 16.3%
  • Ruby 5.3%
  • Swift 4.7%
  • C 3.5%
  • Other 4.9%