4 releases

✓ Uses Rust 2018 edition

0.1.3 Sep 3, 2019
0.1.2 Jul 2, 2019
0.1.1 Jul 2, 2019
0.1.0 Jul 2, 2019
Download history 56/week @ 2019-12-02 76/week @ 2019-12-09 37/week @ 2019-12-16 27/week @ 2019-12-23 15/week @ 2019-12-30 20/week @ 2020-01-06 77/week @ 2020-01-13 31/week @ 2020-01-20 16/week @ 2020-01-27 72/week @ 2020-02-03 71/week @ 2020-02-10 116/week @ 2020-02-17 52/week @ 2020-02-24 44/week @ 2020-03-02 134/week @ 2020-03-09 73/week @ 2020-03-16

238 downloads per month
Used in 4 crates (3 directly)

MIT license

3KB
65 lines

Hasher

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"

Supported algorithms

  • blake2b
  • keccak
  • sm3

Test

$ cargo test --all-features

Dependencies

~0–275KB