Debian Codegraph @

README.md

raw symbols SCIP
1 # MD5 [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]
2
3 The package provides the [MD5] hash function.
4
5 ## Example
6
7 ```rust
8 let digest = md5::compute(b"abcdefghijklmnopqrstuvwxyz");
9 assert_eq!(format!("{:x}", digest), "c3fcd3d76192e4007dfb496cca67e13b");
10 ```
11
12 ## Security Warning
13
14 The package is provided for the purposes of interoperability with protocols and
15 systems that mandate the use of MD5. However, MD5 should be considered
16 [cryptographically broken and unsuitable for further use][VU836068]. Collision
17 attacks against MD5 are both practical and trivial, and [theoretical attacks
18 against MD5 have been found][ACM1724151].
19
20 [RFC6151] advises no new protocols to be designed with any MD5-based
21 constructions, including HMAC-MD5.
22
23 ## Contribution
24
25 Your contribution is highly appreciated. Do not hesitate to open an issue or a
26 pull request. Note that any contribution submitted for inclusion in the project
27 will be licensed according to the terms given in [LICENSE.md](LICENSE.md).
28
29 [ACM1724151]: https://dl.acm.org/citation.cfm?id=1724151
30 [MD5]: https://en.wikipedia.org/wiki/MD5
31 [RFC6151]: https://tools.ietf.org/html/rfc6151
32 [VU836068]: https://www.kb.cert.org/vuls/id/836068
33
34 [build-img]: https://github.com/stainless-steel/md5/workflows/build/badge.svg
35 [build-url]: https://github.com/stainless-steel/md5/actions/workflows/build.yml
36 [documentation-img]: https://docs.rs/md5/badge.svg
37 [documentation-url]: https://docs.rs/md5
38 [package-img]: https://img.shields.io/crates/v/md5.svg
39 [package-url]: https://crates.io/crates/md5