| Crates.io | cthash |
| lib.rs | cthash |
| version | 0.9.0 |
| created_at | 2025-09-22 07:32:32.217431+00 |
| updated_at | 2025-09-22 07:32:32.217431+00 |
| description | const fn implementation of hash functions including MD4, MD5, SHA-1, SHA-2, SHA-3, Keccak |
| homepage | |
| repository | https://github.com/kpp/cthash |
| max_upload_size | |
| id | 1849618 |
| size | 64,874 |
const fn implementation of SHA-1 SHA-2, SHA-3, Keccak, MD4, MD5 hash functions.
This crate allows you to use hash functions as constant expressions in Rust. For all other usages, the RustCrypto/hashes/ repo includes more optimized implementations of these hash functions.
MD4 (md4)
MD5 (md5)
SHA-1 (sha1)
SHA-224 (sha2_224)
SHA-256 (sha2_256)
SHA-384 (sha2_384)
SHA-512 (sha2_512)
SHA3-224 (sha3_224)
SHA3-256 (sha3_256)
SHA3-384 (sha3_384)
SHA3-512 (sha3_512)
pre-NISE Keccak-224 (keccak_256)
pre-NISE Keccak-256 (keccak_256)
pre-NISE Keccak-384 (keccak_384)
pre-NISE Keccak-512 (keccak_512)
There is no allocation at all, no std, no unsafe, no panics, no proc macros, no nightly.
MSRV = 1.88