Version 1.10.0
- Adds support for
Poly1305MAC generation: #5- New class:
Poly1305 - New methods:
poly1305,poly1305auth
- New class:
- Adds support for OTP generation:
- Name all hash algorithms and a registry to loopup algorithms by name.
BlockHashRegistry- for block hash algorithmsHashRegistry- for all hash algorithms
- Adds random byte generator:
randomBytesmethod returns aList<int>fillRandommethod fills aByteBufferwith random values
- New default instances for
Shake128:shake128_128shake128_160shake128_224shake128_256shake128_384shake128_512
- New default instances for
Shake256:shake256_128shake256_160shake256_224shake256_256shake256_384shake256_512
- Adds two new methods to
MACHashBase:sign: generates a tag from a messageverify: verifies if a message and tag matches
- Updates
HashDigest- Adds
isEqualto match it with otherHashDigest,String,TypedData,ByteBuffer,List<int>,Iterable<int> - Use custom equality check
- Adds
- Extracts few methods from utils and create codecs:
- Available:
ASCIICodecB16CodecB32CodecB64CodecB64URLCodec
- New or transferred methods:
toAsciifromAsciitoHexfromHextoBase32fromBase32toBase64fromBase64toBase64UrlfromBase64Url
- New constants:
asciibase16base16lowerbase32base32lowerbase64base64url
- Available:
- New example:
otpauth_parser.dart. It can decode migration string from Google Authenticator and parse any valid otpauth string. - Updates benchmarks and tests
Full Changelog: v1.9.0...v1.10.0