Skip to content
pubscout

dart_des

1.0.2, released 5 years ago by an unverified publisher

Pure Dart implementation of the DES and Triple DES algorithms.

WASM-ready
$ flutter pub add dart_des
Source repository

What it does

Provides a pure Dart implementation of DES and Triple DES cryptographic algorithms. Supports ECB and CBC modes with configurable padding like PKCS5 and PKCS7.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to encrypt or decrypt data using DES or Triple DES in pure Dart.
  • You need compatibility with existing systems using pyDes or standard DES/3DES.

Skip it when

  • You need modern, highly secure encryption standards like AES.
  • You require hardware-accelerated cryptography for heavy workloads.

Strengths

  • Pure Dart implementation with no external dependencies.
  • Supports multiple DES modes and padding types like PKCS5 and PKCS7.

Weaknesses

  • Implements DES/Triple DES, which are considered cryptographically weak and legacy algorithms.
  • Not documented for platform-specific performance optimizations.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:dart_des/dart_des.dart';

main() {
  String key = '12345678';
  String message = 'Hello DES';
  DES desECB = DES(key: key.codeUnits, mode: DESMode.ECB);
  List<int> encrypted = desECB.encrypt(message.codeUnits);
  List<int> decrypted = desECB.decrypt(encrypted);
}

Alternatives

Packages that do the same job and could replace dart_des.

  • crypto

    If you need standard cryptographic hashes (like SHA or MD5) maintained by the Dart team.

Works with

Packages commonly used together with dart_des: ones it builds on, ones built on it, and its own family.