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,
crypto: ">=0.9.2 <3.0.0".
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 between
List<int>s and the new
Digest class, which represents a hash digest. The
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
sha256 fields instead.
MD5 class is not deprecated, the
new MD5() constructor is. Use the top-level
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.