Crates.io | md5 |
lib.rs | md5 |
version | 0.7.0 |
source | src |
created_at | 2015-06-21 10:26:13.324147 |
updated_at | 2019-11-01 19:48:57.309232 |
description | The package provides the MD5 hash function. |
homepage | https://github.com/stainless-steel/md5 |
repository | https://github.com/stainless-steel/md5 |
max_upload_size | |
id | 2433 |
size | 20,613 |
The package provides the MD5 hash function.
let digest = md5::compute(b"abcdefghijklmnopqrstuvwxyz");
assert_eq!(format!("{:x}", digest), "c3fcd3d76192e4007dfb496cca67e13b");
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. Collision attacks against MD5 are both practical and trivial, and theoretical attacks against MD5 have been found.
RFC6151 advises no new protocols to be designed with any MD5-based constructions, including HMAC-MD5.
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.