File: README.md

package info (click to toggle)
rust-md5 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 112 kB
  • sloc: makefile: 4
file content (39 lines) | stat: -rw-r--r-- 1,613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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