Pre-release for the null safety migration of this package.
Note that 2.2.0 may not be the final stable null safety release version, we reserve the right to release it as a 3.0.0 breaking change.
This release will be pinned to only allow pre-release sdk versions starting from 2.10.0-2.0.dev, which is the first version where this package will appear in the null safety allow list.
Adds SHA-2 512/224 and SHA-2 512/256 from FIPS 180-4
newInstance instance members on some classes and updates documentation.
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.