1 unstable release

Uses new Rust 2021

0.1.0-rc5 Sep 4, 2022
0.1.0-rc4 Aug 3, 2022
0.1.0-rc3 Mar 2, 2022
0.1.0-rc0 Nov 4, 2021
0.0.0 May 23, 2020

#220 in Cryptography

Download history 12/week @ 2022-06-03 2/week @ 2022-06-10 7/week @ 2022-06-17 6/week @ 2022-06-24 9/week @ 2022-07-01 14/week @ 2022-07-08 6/week @ 2022-07-15 8/week @ 2022-07-22 26/week @ 2022-07-29 23/week @ 2022-08-05 7/week @ 2022-08-12 4/week @ 2022-08-19 9/week @ 2022-08-26 25/week @ 2022-09-02 31/week @ 2022-09-09 5/week @ 2022-09-16

71 downloads per month
Used in 2 crates

MIT license

465KB
9K SLoC

chksum

Build Coverage crates.io docs.rs LICENSE

Installation

cargo add chksum

Trait Chksum

The core of this libary is Chksum trait which is implemented for various types like &[u8], &str or File.

In case when you need to implement Chksum for your trait you will need to use cryptographic primitives which are in chksum::hash module.

Example

use chksum::prelude::*;

let digest = File::open("path/to/file")?.chksum(HashAlgorithm::MD5)?;
println!("digest {:x}", digest);

Dependencies

~240–680KB
~16K SLoC