crypto 2.1.2 crypto: ^2.1.2 copied to clipboard
Library of cryptographic functions.
- Fix bug in SHA-2 384/512 blocksize.
- Added HMAC-SHA-2 test vectors
- Bump version number for publish mishap (spare file uploaded with
- Added a workaround for a bug in DDC (used in build_web_compilers 1.x). This bug is not present in DDK (used in build_web_compilers 2.x).
- Added SHA384, and SHA512
- Add Sha224 + Refactor
- Support 32bit and 64bit operations for SHA384/51
- Add conditional imports
- De-listify 32bit allocations
- Add sha monte tests for 224,256,384, and 512
- Changed the max message size instead to 0x3ffffffffffff, which is the largest portable value for both JS and the Dart VM.
- Made max message size a BigNum instead of an int so that dart2js can compile with crypto.
- Updated SDK version to 2.0.0-dev.17.0
- Fix SDK constraint.
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
- Properly close sinks passed to
Hashnow extend the new
Fix all strong mode warnings.
- All APIs that were deprecated in 0.9.2 have been removed. No new APIs have
been added. Packages that would use 1.0.0 as a lower bound should use 0.9.2
crypto: ">=0.9.2 <2.0.0".
- Avoid core library methods that don't work on dart2js.
Converter. They convert between
List<int>s and the new
Digestclass, which represents a hash digest. The
Hash.startChunkedConversion—should be used in preference to the old APIs, which are now deprecated.
HMAChave been renamed to
Hmac, respectively. The old names still work, but are deprecated.
md5fields 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.convertshould be used for hashing single values, and
Hash.startChunkedConversionshould be used for hashing streamed values.
SHA256are deprecated. Use the top-level
MD5class is not deprecated, the
new MD5()constructor is. Use the top-level
HMACis deprecated. Use
BASE64are deprecated. Use the Base64 APIs in
CryptoUtilsis deprecated. Use the Base64 APIs in
dart:convertand the hex APIs in the
- Base64 convert returns an Uint8List
- Base64 codec and encoder can now take an encodePaddingCharacter
- Implement a Base64 codec similar to codecs in 'dart:convert'
- ChangeLog starts here.