A set of cryptographic functions implemented in pure Dart.
The individual builders are at:
http://build.chromium.org/p/client.dart.packages/builders/packages-windows-crypto http://build.chromium.org/p/client.dart.packages/builders/packages-linux-crypto http://build.chromium.org/p/client.dart.packages/builders/packages-mac-crypto
Support for this library is given as best effort.
This library has not been reviewed or vetted by security professionals.
Please file feature requests and bugs at the issue tracker.
HashSinkimplementation for limiting integers to 64 bits in Dart language.
Note: There are no APIs in 2.0.0 that weren't also in 0.9.2. Packages that
would use 2.0.0 as a lower bound should use 0.9.2 instead—for example,
Hmacno longer extend
Hash now extend the new
ChunkedConverter class from
Fix all strong mode warnings.
crypto: ">=0.9.2 <2.0.0".
SHA256 now implement
Converter. They convert
List<int>s and the new
Digest class, which represents a hash
Hash.startChunkedConversion—should be used in preference to the old APIs,
which are now deprecated.
HMAC have been renamed to
Hmac, respectively. The old names still work, but are deprecated.
md5 fields have been added to make it easier
to use those hash algorithms without having to instantiate new instances.
Hashing now works correctly for input sizes up to 2^64 bytes.
Hash.newInstance are deprecated.
Hash.convert should be used for hashing single values, and
Hash.startChunkedConversion should be used for hashing streamed values.
SHA256 are deprecated. Use the top-level
MD5 class is not deprecated, the
new MD5() constructor is. Use
md5 field instead.
HMAC is deprecated. Use
BASE64 are deprecated. Use the Base64 APIs in
CryptoUtils is deprecated. Use the Base64 APIs in
dart:convert and the hex
APIs in the
convert package instead.
Add this to your package's pubspec.yaml file:
dependencies: crypto: "^2.0.2+1"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|2.0.2+1||Sep 19, 2017|
|2.0.2||Jul 19, 2017|
|2.0.1||Jun 3, 2016|
|2.0.0||Jun 3, 2016|
|1.1.1||Apr 21, 2016|
|1.1.0||Apr 14, 2016|
|1.0.0||Mar 28, 2016|
|0.9.2+1||Mar 23, 2016|
|0.9.2||Mar 23, 2016|
|0.9.1||Sep 16, 2015|
We analyzed this package, and provided a score, details, and suggestions below.
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]
Detected platforms: Flutter, server, web
All libraries agree