Upgrading crypto 0.8 to 0.9
Review needed0.8.10+4 → 0.9.2+1Deprecated7New3Changed2Fixed2
Review neededUpgrade verdict
6 deprecations.
In plain terms
- The hash classes get new names; the old names keep working but are deprecated.
- Three Hash methods are deprecated; use the conversion methods instead.
- Creating MD5 objects with new MD5() is deprecated; use the md5 field instead.
- The HMAC class is deprecated in favor of Hmac.
Must act Top 3 of 6 that need code or config changes
Dart SDK requirement changed in 0.9.2: >=0.8.10+4 → >=1.8.0 <2.0.0.
Nothing in this upgrade needs a code or configuration change.
Deprecations to plan for
Deprecated6
Renames SHA1, SHA256, and HMAC to Sha1, Sha256, and Hmac; old names still work but are deprecated.
SHA1SHA256HMACSha1Sha256Hmacsha1sha256Deprecates Hash.add, Hash.close, and Hash.newInstance in favor of Hash.convert and Hash.startChunkedConversion.
Hash.addHash.closeHash.newInstanceHash.convertHash.startChunkedConversionDeprecates the new MD5() constructor while the MD5 class remains; use the top-level md5 field instead.
MD5md5Deprecates HMAC; use Hmac instead.
HMACHmacDeprecates Base64Codec, Base64Encoder, Base64Decoder, Base64EncoderSink, Base64DecoderSink, and BASE64 in favor of dart:convert.
Base64CodecBase64EncoderBase64DecoderBase64EncoderSinkBase64DecoderSinkBASE64Deprecates CryptoUtils; use Base64 APIs in dart:convert and hex APIs in the convert package instead.
CryptoUtils