hashlib 1.0.0-dev.2 copy "hashlib: ^1.0.0-dev.2" to clipboard
hashlib: ^1.0.0-dev.2 copied to clipboard

retracted

Secure hash algorithms in pure dart

hashlib #

plugin version dependencies Dart

This library contains some implementation of popular hashing algorithms in pure Dart inspired by Python's hashlib interface.

Features #

Algorithms Supported Since
md5 ✔️ 1.0.0
sha1
sha224
sha256
sha384
sha512
blake2b
blake2s
sha3_224
sha3_256
sha3_384
sha3_512
shake_128
shake_256
pbkdf2_hmac

Getting started #

The following import will give you access to all of the algorithms in this package.

import 'package:hashlib/hashlib.dart' as hashlib;

Usage #

Check the API Documentation for usage instruction. Examples can be found inside the example folder.

import 'package:hashlib/hashlib.dart' as hashlib;

void main() {
  final md5 = hashlib.md5("Hello World");
  print('MD5[Hello World] => $md5');
}