Releases: bitanon/hashlib
Releases · bitanon/hashlib
Version 1.11.3
- Throws
FormatException
for invalid characters in codecs - Adds
base2
codes. New methods:fromBinary
toBinary
Full Changelog: 1.11.2...1.11.3
Version 1.11.2
- Export codecs
- Update documentation
- Truncate seed to 32-bit integer for xxh32
Full Changelog: 1.11.1...1.11.2
Version 1.11.1
- Export a few additional clases
BlockHashBase
BlockHashSink
HashBase
HashDigestSink
HashDigest
Argon2HashDigest
BlockHashRegistry
HashRegistry
Uint8Codec
Full Changelog: 1.11.0...1.11.1
Version 1.11.0
What's Changed
- Optimize scrypt implementation (10x improvement in runtime)
- Optimize Poly1305 implementation (30x improvement in hashrate) #5 by @dipu-bd in #12
- Implement RIPEMD algorithm series by @dipu-bd in #17
ripemd128
,ripemd128sum
ripemd160
,ripemd160sum
ripemd256
,ripemd256sum
ripemd320
,ripemd320sum
- Codecs are now able to handle padding characters
Full Changelog: 1.10.0...1.11.0
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
Version 1.9.0
- Adds SCRYPT:
- New class:
Scrypt
- New method:
scrypt
- New class:
- Changes in
PBKDF2
and extensions:- parameter type of
keyLength
- use default iterations = 1000
- adds validation in the constructor
- adds global
pbkdf2
function
- parameter type of
Full Changelog: 1.8.1...1.9.0
Version 1.8.1
- Improves
dart run
using@pragma('vm:prefer-inline')
- Adds new methods:
crc64sum
xxh64sum
xxh3sum
xxh128sum
- Removes methods:
xxh128code
Full Changelog: 1.8.0...1.8.1
Version 1.8.0
- Adds xxHash64
- New class:
XXHash64
- New constants:
xxh64
,xxh64code
- String extension:
xxh64code
- New class:
- Adds xxHash32
- New class:
XXHash32
- New constants:
xxh32
,xxh32code
- String extension:
xxh32code
- New class:
- Adds XXH3-64
- New class:
XXH3
- New constants:
xxh3
,xxh3code
- String extension:
xxh3code
- New class:
- Adds XXH3-128
- New class:
XXH128
- New constants:
xxh128
,xxh128code
- String extension:
xxh128code
- New class:
- Internal changes:
- Removes the parameters from
$finalize
method inBlockHash
- Uses
>>>
instead of>>
- Removes the parameters from
- Uses Hash Rate instead of Runtime for benchmarks
Full Changelog: 1.7.0...1.8.0
Version 1.7.0
- Renames
Argon2Security.small
->Argon2Security.little
- Adds
Argon2Security.optimize
method to find optimal parameters for a desired runtime. - Define
KeyDerivator
and extend it forArgon2
- Modify internal structure of
Argon2
to make it faster. - Implement
reset
functionality for all hash sinks. - Define and use
BlockHashBase
for some algorithms. - Renames
BlockHash
->BlockHashSink
- Replaces the RFC links to ietf domain.
- Adds
PBKDF2
key derivator. - Adds extension to
HMAC
to createPBKDF2
instance. - Define
MACHashBase
andMACSinkBase
for Message Authentication Code generators. - Reset features for
crc16
,crc32
,crc64
,alder32
, andhmac
internal sinks. - Enhance
blake2b
andblake2s
for MAC generation - Breaking change:
- Accept number of bytes instead of bits for
Blake2b
andBlake2s
- Removes all
Blake2b.of##
andBlake2s.of##
methods
- Accept number of bytes instead of bits for
Full Changelog: 1.6.1...1.7.0
Version 1.6.1
- Fixes enum name getter usage issue for Dart < 2.15.0
Full Changelog: 1.6.0...1.6.1