dart_3des 1.0.1 copy "dart_3des: ^1.0.1" to clipboard
dart_3des: ^1.0.1 copied to clipboard

Triple DES and DES block cipher implementation ported from CryptoJS

example/lib/main.dart

import 'package:dart_3des/dart_3des.dart';

main() {
  var key = "cipher";
  var blockCipher = new BlockCipher(new DESEngine(), key);
  var message = "Uganda is a really a difficult country";
  var ciphertext = blockCipher.encodeB64(message);
  var decoded = blockCipher.decodeB64(ciphertext);

  print("key: $key");
  print("message: $message");
  print("ciphertext (base64): $ciphertext");
  print("decoded ciphertext: $decoded");
}
5
likes
110
pub points
73%
popularity

Publisher

unverified uploader

Triple DES and DES block cipher implementation ported from CryptoJS

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on dart_3des