flutter_3des 0.0.4 copy "flutter_3des: ^0.0.4" to clipboard
flutter_3des: ^0.0.4 copied to clipboard

A flutter implementation of Triple DES (3DES) algorithm. This implementation relies on flutter method channel

flutter_3des #

A flutter implementation of Triple DES (3DES) algorithm. This plugin is an improvement of flutter_des

A comparison of Android/iOS result and that of CryptoJS

Android iOS
Android iOS
CryptoJS Implementation CryptoJS Output
CryptoJS Implementation CryptoJS Output

Getting Started #

Add Dependency #

dependencies:
  flutter_3des: #latest version

Implementation #


void example() async {
  const string = "my name is flutter";
  const key = "702040801020305070B0D1101020305070B0D1112110D0B0";
  const iv = "070B0D1101020305";

  var encrypt = await Flutter3des.encrypt(string, key, iv: iv);
  var decrypt = await Flutter3des.decrypt(encrypt, key, iv: iv);
  var encryptHex = await Flutter3des.encryptToHex(string, key, iv: iv);
  var decryptHex = await Flutter3des.decryptFromHex(encryptHex, key, iv: iv);
  var encryptBase64 = await Flutter3des.encryptToBase64(string, key, iv: iv);
  var decryptBase64 = await Flutter3des.decryptFromBase64(encryptBase64, key, iv: iv);
}```

5
likes
130
pub points
79%
popularity

Publisher

unverified uploader

A flutter implementation of Triple DES (3DES) algorithm. This implementation relies on flutter method channel

Repository
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_3des