cryptoutils 0.3.0

  • Installing
  • Versions
  • 26

Build Status

A small utility library for crypto. It declares a class names CryptoUtils which can replace the one in package:crypto. It includes the few methods this class provides.

I created this library because I had a bunch of crypto-related utility functions that I used across different projects and wanted to avoid code duplication.

If you have other crypto-related code you don't want to duplicate, feel free to include it and file a PR.

Currently it includes:

  • all the methods CryptoUtils from package:crypto
  • a Codec (including separate encoder and decoder classes) for the following encidongs:
  • an abstract class Hash and several fixed-sized hash classes, Hash128, Hash160, Hash256, Hash512



  • Remove base58(check) codec because it is in package:base58check
  • Remove UnmodifiableUint8List (remove zengen dependency)


  • Updated bignum dependency to v0.1.0


  • Changed the library structure to have separate libraries for all aspects and have `cryptoutils.dart`` export them all.
  • Used ZenGen for delegation so that dart:mirrors is no longer used.

0.1.10 (2015-06-10)

  • Updated dependency of bignum to latest version (0.0.6)
  • Updated dependency of collection to latest version (1.1.1)

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  cryptoutils: ^0.3.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:cryptoutils/cryptoutils.dart';
Version Uploaded Documentation Archive
0.3.0 Jan 31, 2018 Go to the documentation of cryptoutils 0.3.0 Download cryptoutils 0.3.0 archive
0.2.1 Apr 12, 2016 Go to the documentation of cryptoutils 0.2.1 Download cryptoutils 0.2.1 archive
0.2.0+2 Dec 21, 2015 Go to the documentation of cryptoutils 0.2.0+2 Download cryptoutils 0.2.0+2 archive
0.2.0+1 Dec 15, 2015 Go to the documentation of cryptoutils 0.2.0+1 Download cryptoutils 0.2.0+1 archive
0.2.0 Dec 15, 2015 Go to the documentation of cryptoutils 0.2.0 Download cryptoutils 0.2.0 archive
0.1.10 Jun 10, 2015 Go to the documentation of cryptoutils 0.1.10 Download cryptoutils 0.1.10 archive
0.1.9 Oct 28, 2014 Go to the documentation of cryptoutils 0.1.9 Download cryptoutils 0.1.9 archive
0.1.8 Oct 8, 2014 Go to the documentation of cryptoutils 0.1.8 Download cryptoutils 0.1.8 archive
0.1.7 Oct 1, 2014 Go to the documentation of cryptoutils 0.1.7 Download cryptoutils 0.1.7 archive
0.1.6 Sep 24, 2014 Go to the documentation of cryptoutils 0.1.6 Download cryptoutils 0.1.6 archive

All 16 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0.
 Because cryptoutils depends on bignum >=0.0.3 which requires SDK version <2.0.0, version solving failed.

Health suggestions

Format lib/hash.dart.

Run dartfmt to format lib/hash.dart.

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use cryptoutils.dart.