des_engine 0.0.1 copy "des_engine: ^0.0.1" to clipboard
des_engine: ^0.0.1 copied to clipboard

A des decryption engine, he only has dart code

example/lib/main.dart

import 'package:des_engine/des_engine.dart';
import 'package:flutter/material.dart';

void main() {
  const String str = 'CfAmqOiIYz6NkH0Te32Uz6obXELPspz1pDj+oOUNNbsmptHP0Jwvdg==';
  const String key = 'your key';
  String? decoded;
  try {
    final DES des = DES(DESEngine(), key);
    decoded = des.decodeBase64(str);
  } catch (_) {
    debugPrint(_.toString());
  }

  String result =
      'des decode==>\n\nkey = $key \n\nString = $str\n\ndecoded ==> $decoded';
  debugPrint(result);
  runApp(MaterialApp(
    title: 'DESEngine Demo',
    debugShowCheckedModeBanner: false,
    home: Scaffold(body: Center(child: Text(result))),
  ));
}
0
likes
120
pub points
51%
popularity

Publisher

unverified uploader

A des decryption engine, he only has dart code

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on des_engine