8 releases (breaking)
Uses old Rust 2015
0.7.0 | Nov 30, 2017 |
---|---|
0.6.0 | Nov 20, 2017 |
0.5.0 | Nov 12, 2017 |
0.4.0 | Nov 12, 2017 |
0.1.1 | Jul 23, 2017 |
#1444 in Cryptography
6KB
134 lines
Cryptohash
Trait abstracting over cryptographic hash-functions
Example
use cryptohash::{Blake2b, CryptoHash, CryptoHashState};
fn main() {
let mut state = Blake2b::state();
state.write(b"hello world").unwrap();
assert_eq!(
format!("{}", state.fin()),
"256c83b297114d201b30179f3f0ef0cace9783622da5974326b436178aeef610"
);
}
lib.rs
:
Trait abstracting over cryptographic hash-functions.
Dependencies
~145KB