hl_des 2.0.1 copy "hl_des: ^2.0.1" to clipboard
hl_des: ^2.0.1 copied to clipboard

outdated

A new flutter plugin project.

hl_des #

Flutter DES encryption and decryption.

Supported: DES/CBC/PKCS7Padding

Getting Started #

Add dependency #

dependencies:
  hl_des: ^2.0.1  #latest version

Example #

import 'package:hl_des/hl_des.dart';

void example() async {
  const string = "Java, android, ios, get the same result by DES encryption and decryption."; // base64
  const key = "xxx="; // base64
  const iv = "xxx="; // base64

  decrypted = await HlDes.desDecrypt(data: string, iv: iv, key: key);
  print("decrypted = $decrypted");

  final encrypted = await HlDes.desEncrypt(data: decrypted, iv: iv, key: key);
  print("encrypted = $encrypted");
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on hl_des