tripledes 2.1.0

  • README.md
  • Installing
  • Versions
  • 87

tripledes-dart

Triple DES and DES block cipher implementation ported from CryptoJS

Build Status

This is ported from CryptoJS. The latest version can be found bryx/cryptojs or sytelus/CryptoJS

Example

import 'package:tripledes/tripledes.dart';

main() {
  var key = "cipher";
  var blockCipher = new BlockCipher(new DESEngine(), key);
  var message = "Driving in from the edge of town";
  var ciphertext = blockCipher.encodeB64(message);
  var decoded = blockCipher.decodeB64(ciphertext);

  print("key: $key");
  print("message: $message");
  print("ciphertext (base64): $ciphertext");
  print("decoded ciphertext: $decoded");
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  tripledes: ^2.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:tripledes/tripledes.dart';
  
Version Uploaded Documentation Archive
2.1.0 Aug 21, 2018 Go to the documentation of tripledes 2.1.0 Download tripledes 2.1.0 archive
2.0.1 Sep 7, 2017 Go to the documentation of tripledes 2.0.1 Download tripledes 2.0.1 archive
2.0.0 Jun 30, 2017 Go to the documentation of tripledes 2.0.0 Download tripledes 2.0.0 archive
1.0.1 Jun 28, 2017 Go to the documentation of tripledes 1.0.1 Download tripledes 1.0.1 archive
1.0.0 Jun 28, 2017 Go to the documentation of tripledes 1.0.0 Download tripledes 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
82
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
87
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:tripledes/tripledes.dart.

Health suggestions

Format lib/src/block_cipher.dart.

Run dartfmt to format lib/src/block_cipher.dart.

Format lib/src/des.dart.

Run dartfmt to format lib/src/des.dart.

Format lib/src/engine.dart.

Run dartfmt to format lib/src/engine.dart.

Format lib/src/tripledes.dart.

Run dartfmt to format lib/src/tripledes.dart.

Maintenance issues and suggestions

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use tripledes.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test ^1.3.0