hashlib 1.0.0-dev.4
hashlib: ^1.0.0-dev.4 copied to clipboard
RFC-compliant implementations of secure hash functions in pure Dart with zero-dependencies.
hashlib #
This library contains implementation of some popular hash functions 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 |
⌛ | |
scrypt |
⌛ |
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');
}