Skip to content

Version 1.10.0

Compare
Choose a tag to compare
@dipu-bd dipu-bd released this 30 Apr 20:33
· 77 commits to master since this release
  • Adds support for Poly1305 MAC generation: #5
    • New class: Poly1305
    • New methods: poly1305, poly1305auth
  • Adds support for OTP generation:
    • HOTP - Hash-based OTP generation #8
    • TOTP - Time-based OTP generation #9
  • Name all hash algorithms and a registry to loopup algorithms by name.
    • BlockHashRegistry - for block hash algorithms
    • HashRegistry - for all hash algorithms
  • Adds random byte generator:
    • randomBytes method returns a List<int>
    • fillRandom method fills a ByteBuffer 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 message
    • verify: verifies if a message and tag matches
  • Updates HashDigest
    • Adds isEqual to match it with other HashDigest, String, TypedData, ByteBuffer, List<int>, Iterable<int>
    • Use custom equality check
  • 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
  • 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