crypto 1.1.1
crypto: ^1.1.1 copied to clipboard
Library of cryptographic functions.
1.1.1 #
- Properly close sinks passed to
Hash.startChunkedConversion()whenByteConversionSink.close()is called.
1.1.0 #
-
HmacandHashnow extend the newChunkedConverterclass fromdart:convert. -
Fix all strong mode warnings.
1.0.0 #
- 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
instead—for example,
crypto: ">=0.9.2 <2.0.0".
0.9.2+1 #
- Avoid core library methods that don't work on dart2js.
0.9.2 #
-
Hash,MD5,SHA1, andSHA256now implementConverter. They convert betweenList<int>s and the newDigestclass, which represents a hash digest. TheConverterAPIs—Hash.convert()andHash.startChunkedConversion—should be used in preference to the old APIs, which are now deprecated. -
SHA1,SHA256, andHMAChave been renamed toSha1,Sha256, andHmac, respectively. The old names still work, but are deprecated. -
Top-level
sha1,sha256, andmd5fields 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.
Deprecations #
-
Hash.add,Hash.close, andHash.newInstanceare deprecated.Hash.convertshould be used for hashing single values, andHash.startChunkedConversionshould be used for hashing streamed values. -
SHA1andSHA256are deprecated. Use the top-levelsha1andsha256fields instead. -
While the
MD5class is not deprecated, thenew MD5()constructor is. Use the top-levelmd5field instead. -
HMACis deprecated. UseHmacinstead. -
Base64Codec,Base64Encoder,Base64Decoder,Base64EncoderSink,Base64DecoderSink, andBASE64are deprecated. Use the Base64 APIs indart:convertinstead. -
CryptoUtilsis deprecated. Use the Base64 APIs indart:convertand the hex APIs in theconvertpackage instead.
0.9.1 #
- Base64 convert returns an Uint8List
- Base64 codec and encoder can now take an encodePaddingCharacter
- Implement a Base64 codec similar to codecs in 'dart:convert'
0.9.0 #
- ChangeLog starts here.