Skip to content
pubscout

hash

1.0.4, released 5 years ago by an unverified publisher

A set of cryptographic hashing functions implemented in pure Dart.

WASM-ready
$ flutter pub add hash
Source repository

What it does

Provides common cryptographic hashing algorithms including MD5, RIPEMD-160, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, and HMAC. Implemented entirely in pure Dart with no external dependencies.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to compute MD5, RIPEMD-160, or various SHA hash digests in pure Dart
  • You want to generate HMAC message authentication codes
  • You want a hashing library with zero third-party dependencies

Skip it when

  • You already use package:crypto for your hashing needs

Strengths

  • Pure Dart implementation with no dependencies
  • Supports a wide range of standard hashing algorithms (MD5, RIPEMD-160, SHA-1 through SHA-512, HMAC)

Weaknesses

  • Limited documentation beyond basic README code snippets
  • Minimal ecosystem adoption compared to older established alternatives

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:hash/hash.dart';

void main() {
  var data = [96, 191, 108, 70];
  print("SHA256 digest as bytes: ${SHA256().update(data).digest()}");
}

Alternatives

Packages that do the same job and could replace hash.

  • crypto

    It is the standard, well-tested cryptographic hashing library maintained by the Dart team.