# RustCrypto Hashes

> Collection of cryptographic hash functions written in pure Rust

Source: https://talira.ai/catalog/rustcrypto-hashes-fh3q76a5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / hashing](https://talira.ai/categories/libraries/hashing), [libraries / cryptography](https://talira.ai/categories/libraries/cryptography), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [RustCrypto](https://talira.ai/orgs/rustcrypto.md)

RustCrypto Hashes is a collection of cryptographic hash functions in pure Rust, each in its own crate and built on the traits of the digest crate, so they're interchangeable: SHA-2 (sha2: SHA-224, SHA-256, SHA-384 and SHA-512), SHA-3 and Keccak (sha3), BLAKE2 (blake2), SHA-1 (sha1), MD5 (published as md-5), RIPEMD, Whirlpool, SM3, Streebog, Ascon-Hash256 and more. Every crate works without the standard library (no_std), so they run on bare metal and in WebAssembly. The README rates each algorithm's security, marks MD5, MD4, MD2 and SHA-1 as broken in practice, and recommends BLAKE3, SHA-2 or SHA-3 for new applications. Every crate is MIT OR Apache-2.0, maintained by the RustCrypto project.

## Links

- GitHub: https://github.com/RustCrypto/hashes
- Docs: https://docs.rs/sha2

## Problems it solves

- compute a SHA-256 hash in Rust without linking OpenSSL
- hash data in an embedded Rust program with no standard library
- swap one hash algorithm for another in Rust without rewriting the code

## Features

- SHA-2, SHA-3, BLAKE2, SHA-1, MD5, RIPEMD, Whirlpool, SM3, Streebog and more
- one crate per algorithm on the shared digest traits
- no_std, for bare metal and WebAssembly
- security rating for each algorithm

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.77, adoption 0.67, momentum 0.40, community 0.80, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 26 commits in the last 90 days
- 2.3k GitHub stars
- 101 contributors
- backed by RustCrypto

## Alternatives

- [md5 (Rust crate)](https://talira.ai/catalog/md5-rust-crate-1afvb3qt.md): The MD5 hash function for Rust
- [rustc-hash](https://talira.ai/catalog/rustc-hash-90ymt30n.md): The fast, non-cryptographic FxHasher that rustc uses, with FxHashMap and FxHashSet

## Sources

[^1]: https://github.com/RustCrypto/hashes/blob/master/sha2/LICENSE-MIT (checked 27 Nov 2026)
[^2]: https://github.com/RustCrypto/hashes/blob/master/sha2/Cargo.toml (checked 27 Nov 2026)
[^3]: https://github.com/RustCrypto/hashes/blob/master/README.md (checked 27 Nov 2026)
