Crates.io | hasher |
lib.rs | hasher |
version | 0.1.4 |
source | src |
created_at | 2019-07-02 10:30:35.070902 |
updated_at | 2021-12-06 09:31:31.843859 |
description | Package hasher provides a Hasher trait. |
homepage | https://github.com/cryptape/hasher |
repository | |
max_upload_size | |
id | 145394 |
size | 6,499 |
Package hasher
provides a Hasher trait.
pub trait Hasher {
const LENGTH: usize;
fn digest(&self, data: &[u8]) -> Vec<u8>;
}
Add this to your Cargo.toml
:
[dependencies]
hasher = "0.1"
$ cargo test --all-features