chksum
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 *;
let digest = open?.chksum?;
println!;