chksum-hash

Build Coverage crates.io docs.rs MSRV unsafe forbidden LICENSE

Simple cryptography library that provides interface for calculating both batch and stream computation of hash digest.

Features

Setup

Update your Cargo.toml by adding entry to dependencies section.

```toml [dependencies]

...

chksum-hash = "0.2.1" ```

Alternatively use cargo add subcommand.

sh cargo add chksum-hash

Usage

```rust use chksum_hash as hash;

let digest = hash::new(hash::Algorithm::SHA2256) .update("some") .update(b"data") .update([0, 1, 2, 3]) .digest(); asserteq!( digest.tohexlowercase(), "5c3bfbc8614adc72d3ec0e9b15a1fd1c55cee63e34af5a4ff058eb2eef7d8482" ); ```

More usage examples are available in the documentation at docs.rs.

License

MIT