hashlib 1.9.0
hashlib: ^1.9.0 copied to clipboard
Secure hash functions, checksum generators, and key derivation algorithms optimized for Dart.
1.9.0 #
- Adds SCRYPT:
- New class:
Scrypt - New method:
scrypt
- New class:
- Changes in
PBKDF2and extensions:- parameter type of
keyLength - use default iterations = 1000
- adds validation in the constructor
- adds global
pbkdf2function
- parameter type of
1.8.1 #
- Improves
dart runusing@pragma('vm:prefer-inline') - Adds new methods:
crc64sumxxh64sumxxh3sumxxh128sum
- Removes methods:
xxh128code
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
$finalizemethod inBlockHash - Uses
>>>instead of>>
- Removes the parameters from
- Uses Hash Rate instead of Runtime for benchmarks
1.7.0 #
- Renames
Argon2Security.small->Argon2Security.little - Adds
Argon2Security.optimizemethod to find optimal parameters for a desired runtime. - Define
KeyDerivatorand extend it forArgon2 - Modify internal structure of
Argon2to make it faster. - Implement
resetfunctionality for all hash sinks. - Define and use
BlockHashBasefor some algorithms. - Renames
BlockHash->BlockHashSink - Replaces the RFC links to ietf domain.
- Adds
PBKDF2key derivator. - Adds extension to
HMACto createPBKDF2instance. - Define
MACHashBaseandMACSinkBasefor Message Authentication Code generators. - Reset features for
crc16,crc32,crc64,alder32, andhmacinternal sinks. - Enhance
blake2bandblake2sfor MAC generation - Breaking change:
- Accept number of bytes instead of bits for
Blake2bandBlake2s - Removes all
Blake2b.of##andBlake2s.of##methods
- Accept number of bytes instead of bits for
1.6.1 #
- Fixes enum name getter usage issue for Dart < 2.15.0
1.6.0 #
- Optimize Argon2 (Now it is 6 times faster than 1.5.0)
- Support for Argon2 in Node platform (TODO: requires optimization)
- Renames
Argon2Context->Argon2with the following change:convert()will generate password hash and return anArgon2HashDigestencode()will generate password hash and return argon2 encoded string.toInstance()is renamed toinstanceto get a singleton instance.- The method
encode()is renamed toconvert()inside theinstance.
- Adds
Argon2Securityexposing some default parameter choices which can be used with these quick access functions:argon2dargon2iargon2id
- Argon2 will now return the
Argon2HashDigest, containing a few changes overHashDigest:encoded()will return the argon2 hash as encoded format.toString()will return the encoded hash instead of the password hash.
- Implement custom
toBase64andfromBase64in utils for faster conversion without padding. - Changes to
HashDigest:- merge
base64andbase64urlmethods into one. - uses custom base64 conversion that does not include
=padding. - removes
lantin1
- merge
1.5.0 #
- Fixes issues with web platform
- Adds web support to
blake2b - Adds Argon2, the Password Hashing Competition winner.
1.4.0 #
- Modifies the internal structure for better accessibility
- Fixes stream binding issue in
HashBase - Removes a lot of string extensions. Remaining ones are:
sha512digestsha256digestsha224digestsha3_512digestsha3_384digestsha3_256digestsha3_224digestsha1digestmd5digestcrc32code
- Accepts file input in
HashBase - Accepts
saltandpersonalizationvalues withBlake2sandBlake2b
1.3.0 #
- Reduces memory overhead by utilizing the buffer in all
BlockHash - Fixes broken sha512 hash fo web VM
- New features:
blake2sblake2b
1.2.0 #
- New features available:
crc16crc32crc64alder32
1.1.0 #
- Adds
Stringextensions for convenient use all algorithms. - Renames functions:
sha512sum224->sha512t224sumsha512sum256->sha512t256sum
- Renames function for
HashBase:HashBase.stream->HashBase.consumeHashBase.stringString->HashBase.consumeAs
- Modifies the internal
HashDigestSink:- Implements
ByteConversionSinkinstead of extendingSink<List<int>> - Use
addSliceinstead ofadd
- Implements
- Improves performance of some algorithms
1.0.0 #
- First release