1 unstable release
new 0.1.0 | Mar 11, 2025 |
---|
#654 in Algorithms
45 downloads per month
80KB
2K
SLoC
hashers
Multiple hash function with one interface.
Supported hash functions
Planned/Implemented hash functions:
- CRC
- Algorithms in https://docs.rs/crc/3.2.1/crc/index.html#constants (Not tested)
- CRC-32 (B), CRC-32C (Tested)
chsum(1)
(Test fail)
- MD2
- MD4
- BSD checksum
- SysV checksum
- Adler-32
- Fletcher
- Fletcher-4
- Fletcher-8
- Fletcher-16 (Tested)
- Fletcher-32 (Test fail)
- Fletcher-64 (Not tested)
- Fowler-Noll-Vo hash
- FNV-0 32bit (Not tested)
- FNV-0 64bit (Not tested)
- FNV-0 128+ bits
- FNV-1 32bit (Tested)
- FNV-1 64bit (Tested)
- FNV-1 128+ bits
- FNV-1a 32bit (Tested)
- FNV-1a 64bit (Tested)
- FNV-1a 128bit (Tested)
- FNV-1a 256bit (Tested)
- FNV-1a 512bit (Tested)
- FNV-1a 1024bit (Tested)
- Longitudinal redundancy check (Tested)
- Luhn (mod10)
- Verhoeff
- Damm
- Pearson hash
- Paul Hsieh SuperFastHash
- Jenkins hash function
- One-at-a-Time
- Lookup2
- Lookup3
- SpookyHash
- djb2
- 32bit
- 64bit (Not tested)
- sdbm
- 32bit
- 64bit (Not tested)
- lose lose (Not tested)
- MetroHash
- MetroHash 64bit (Not tested)
- MetroHash 128bit (Not tested)
- MetroHash 128bit CRC (Not tested)
- XXHash
- XXHash 32bit (Not tested)
- XXHash 64bit (Not tested)
- XXH3
- XXH3 64bit (Not tested)
- XXH3 128bit (Not tested)
- SipHash
- PJW hash
- MurmurHash
-
ztanml/fast-hash
- CityHash
- CityHash 32bit (Not tested)
- CityHash 64bit (Not tested)
- CityHash 128bit
- CityHash CRC 128
- CityHash CRC 256
- FarmHash
- FarmHash fingerprint 32bit (Not tested)
- FarmHash fingerprint 64bit (Not tested)
- FarmHash fingerprint 128bit
- FarmHash 32bit (Not tested)
- FarmHash 64bit (Not tested)
- FarmHash 128bit
- Ascon
- Ascon-Hash (Not tested)
- Ascon-HashA (Not tested)
- Ascon-Xof 32byte (Not tested)
- Ascon-XofA 32byte (Not tested)
- BLAKE2
- BLAKE2b 512bit (Not tested)
- BLAKE2s 256bit (Not tested)
- FSB
- FSB-160 (Not tested)
- FSB-224 (Not tested)
- FSB-256 (Not tested)
- FSB-384 (Not tested)
- FSB-512 (Not tested)
- GOST
- GOST R 34.11-94 (Not tested)
- Grøstl
- Grøstl-224 (Not tested)
- Grøstl-256 (Not tested)
- Grøstl-384 (Not tested)
- Grøstl-512 (Not tested)
- JH
- JH-224 (Not tested)
- JH-256 (Not tested)
- JH-384 (Not tested)
- JH-512 (Not tested)
- KangarooTwelve
- RIPEMD
- RIPEMD-128 (Not tested)
- RIPEMD-160 (Not tested)
- RIPEMD-256 (Not tested)
- RIPEMD-320 (Not tested)
- SHA-1 (Not tested)
- SHA-2
- SHA-224 (Not tested)
- SHA-256 (Not tested)
- SHA-384 (Not tested)
- SHA-512 (Not tested)
- SHA-512/224 (Not tested)
- SHA-512/256 (Not tested)
- SHA-3
- SHA3-224 (Not tested)
- SHA3-256 (Not tested)
- SHA3-384 (Not tested)
- SHA3-512 (Not tested)
- SHAKE128
- SHAKE256
- Keccak
- Keccak-224 (Not tested)
- Keccak-256 (Not tested)
- Keccak-384 (Not tested)
- Keccak-512 (Not tested)
- TurboSHAKE
- Shabal
- Shabal-192 (Not tested)
- Shabal-224 (Not tested)
- Shabal-256 (Not tested)
- Shabal-384 (Not tested)
- Shabal-512 (Not tested)
- Skein
- Skein-256 (Not tested)
- Skein-512 (Not tested)
- Skein-1024 (Not tested)
- ShangMi3 (Not tested)
- Streebog
- Streebog-256 (Not tested)
- Streebog-512 (Not tested)
- Tiger
- Whirlpool
- Whirlpool-0
- Whirlpool-T
- Whirlpool (Not tested)
Dependencies
~0.6–3MB
~36K SLoC