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

retractedoutdated

RFC-compliant implementations of secure hash functions in pure Dart with zero-dependencies.

example/hashlib_example.dart

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

void main() {
  final text = "Happy Hashing!";
  print('[MD5] $text => ${hashlib.md5sum(text)}');
  print('[SHA-1] $text => ${hashlib.sha1sum(text)}');
  print('[SHA-224] $text => ${hashlib.sha224sum(text)}');
  print('[SHA-256] $text => ${hashlib.sha256sum(text)}');
  print('[SHA-384] $text => ${hashlib.sha384sum(text)}');
  print('[SHA-512] $text => ${hashlib.sha512sum(text)}');
  print('[SHA-512/224] $text => ${hashlib.sha512224sum(text)}');
  print('[SHA-512/256] $text => ${hashlib.sha512256sum(text)}');
}
62
likes
0
points
13.6k
downloads

Publisher

verified publisherbitanon.dev

Weekly Downloads

RFC-compliant implementations of secure hash functions in pure Dart with zero-dependencies.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on hashlib