https://github.com/cryptape/hasher
https://github.com/cryptape/hasher
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cryptape/hasher
- Owner: cryptape
- License: mit
- Created: 2019-07-02T09:12:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-27T21:42:01.000Z (about 3 years ago)
- Last Synced: 2024-11-08T03:06:35.448Z (over 1 year ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hasher
Package `hasher` provides a Hasher trait.
```rs
pub trait Hasher {
const LENGTH: usize;
fn digest(&self, data: &[u8]) -> Vec;
}
```
Add this to your `Cargo.toml`:
```toml
[dependencies]
hasher = "0.1"
```
# Supported algorithms
- blake2b
- keccak
- sm3
# Test
```
$ cargo test --all-features
```