Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stainless-steel/md5
MD5 hash function
https://github.com/stainless-steel/md5
algorithms checksum cryptography digest hash md5
Last synced: 3 months ago
JSON representation
MD5 hash function
- Host: GitHub
- URL: https://github.com/stainless-steel/md5
- Owner: stainless-steel
- License: other
- Created: 2015-06-21T10:23:53.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T10:57:44.000Z (7 months ago)
- Last Synced: 2024-04-30T20:27:34.168Z (7 months ago)
- Topics: algorithms, checksum, cryptography, digest, hash, md5
- Language: Rust
- Homepage:
- Size: 94.7 KB
- Stars: 68
- Watchers: 3
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MD5 [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]
The package provides the [MD5] hash function.
## Example
```rust
let digest = md5::compute(b"abcdefghijklmnopqrstuvwxyz");
assert_eq!(format!("{:x}", digest), "c3fcd3d76192e4007dfb496cca67e13b");
```## Security Warning
The package is provided for the purposes of interoperability with protocols and
systems that mandate the use of MD5. However, MD5 should be considered
[cryptographically broken and unsuitable for further use][VU836068]. Collision
attacks against MD5 are both practical and trivial, and [theoretical attacks
against MD5 have been found][ACM1724151].[RFC6151] advises no new protocols to be designed with any MD5-based
constructions, including HMAC-MD5.## Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a
pull request. Note that any contribution submitted for inclusion in the project
will be licensed according to the terms given in [LICENSE.md](LICENSE.md).[ACM1724151]: https://dl.acm.org/citation.cfm?id=1724151
[MD5]: https://en.wikipedia.org/wiki/MD5
[RFC6151]: https://tools.ietf.org/html/rfc6151
[VU836068]: https://www.kb.cert.org/vuls/id/836068[build-img]: https://github.com/stainless-steel/md5/workflows/build/badge.svg
[build-url]: https://github.com/stainless-steel/md5/actions/workflows/build.yml
[documentation-img]: https://docs.rs/md5/badge.svg
[documentation-url]: https://docs.rs/md5
[package-img]: https://img.shields.io/crates/v/md5.svg
[package-url]: https://crates.io/crates/md5