Version 1.10.0
- Adds support for
Poly1305
MAC 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:
randomBytes
method returns aList<int>
fillRandom
method fills aByteBuffer
with random values
- New default instances for
Shake128
:shake128_128
shake128_160
shake128_224
shake128_256
shake128_384
shake128_512
- New default instances for
Shake256
:shake256_128
shake256_160
shake256_224
shake256_256
shake256_384
shake256_512
- Adds two new methods to
MACHashBase
:sign
: generates a tag from a messageverify
: verifies if a message and tag matches
- Updates
HashDigest
- Adds
isEqual
to 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:
ASCIICodec
B16Codec
B32Codec
B64Codec
B64URLCodec
- New or transferred methods:
toAscii
fromAscii
toHex
fromHex
toBase32
fromBase32
toBase64
fromBase64
toBase64Url
fromBase64Url
- New constants:
ascii
base16
base16lower
base32
base32lower
base64
base64url
- 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: 1.9.0...1.10.0