| 1 |
# RustCrypto: MD5 |
| 2 |
|
| 3 |
[![crate][crate-image]][crate-link] |
| 4 |
[![Docs][docs-image]][docs-link] |
| 5 |
![Apache2/MIT licensed][license-image] |
| 6 |
![Rust Version][rustc-image] |
| 7 |
[![Project Chat][chat-image]][chat-link] |
| 8 |
[![Build Status][build-image]][build-link] |
| 9 |
|
| 10 |
Pure Rust implementation of the [MD5 hash function][1]. |
| 11 |
|
| 12 |
[Documentation][docs-link] |
| 13 |
|
| 14 |
## ⚠️ Security Warning |
| 15 |
|
| 16 |
This crate is provided for the purposes of legacy interoperability with |
| 17 |
protocols and systems which mandate the use of MD5. |
| 18 |
|
| 19 |
However, MD5 is [cryptographically broken and unsuitable for further use][2]. |
| 20 |
|
| 21 |
Collision attacks against MD5 are both practical and trivial, and |
| 22 |
[theoretical attacks against MD5's preimage resistance have been found][3]. |
| 23 |
|
| 24 |
[RFC6151][4] advises no new IETF protocols can be designed MD5-based constructions, |
| 25 |
including HMAC-MD5. |
| 26 |
|
| 27 |
## Minimum Supported Rust Version |
| 28 |
|
| 29 |
Rust **1.41** or higher. |
| 30 |
|
| 31 |
Minimum supported Rust version can be changed in the future, but it will be |
| 32 |
done with a minor version bump. |
| 33 |
|
| 34 |
## SemVer Policy |
| 35 |
|
| 36 |
- All on-by-default features of this library are covered by SemVer |
| 37 |
- MSRV is considered exempt from SemVer as noted above |
| 38 |
|
| 39 |
## License |
| 40 |
|
| 41 |
Licensed under either of: |
| 42 |
|
| 43 |
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
| 44 |
* [MIT license](http://opensource.org/licenses/MIT) |
| 45 |
|
| 46 |
at your option. |
| 47 |
|
| 48 |
### Contribution |
| 49 |
|
| 50 |
Unless you explicitly state otherwise, any contribution intentionally submitted |
| 51 |
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be |
| 52 |
dual licensed as above, without any additional terms or conditions. |
| 53 |
|
| 54 |
[//]: # (badges) |
| 55 |
|
| 56 |
[crate-image]: https://img.shields.io/crates/v/md-5.svg |
| 57 |
[crate-link]: https://crates.io/crates/md-5 |
| 58 |
[docs-image]: https://docs.rs/md-5/badge.svg |
| 59 |
[docs-link]: https://docs.rs/md-5/ |
| 60 |
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg |
| 61 |
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg |
| 62 |
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg |
| 63 |
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260041-hashes |
| 64 |
[build-image]: https://github.com/RustCrypto/hashes/workflows/md5/badge.svg?branch=master |
| 65 |
[build-link]: https://github.com/RustCrypto/hashes/actions?query=workflow%3Amd5 |
| 66 |
|
| 67 |
[//]: # (general links) |
| 68 |
|
| 69 |
[1]: https://en.wikipedia.org/wiki/MD5 |
| 70 |
[2]: https://www.kb.cert.org/vuls/id/836068 |
| 71 |
[3]: https://dl.acm.org/citation.cfm?id=1724151 |
| 72 |
[4]: https://tools.ietf.org/html/rfc6151 |