3 releases (breaking)
0.3.0 | Mar 21, 2021 |
---|---|
0.2.0 | Mar 21, 2021 |
0.1.0 | Mar 9, 2021 |
#12 in #blake2
182 downloads per month
7KB
99 lines
Blakeout
Memory hard hashing algorithm based on Blake2s
Usage
Blakeout
can be used in the following way:
use crypto::digest::Digest;
use blakeout::Blakeout;
// create a Blakeout object, it will hash your bytes for you
let mut hasher = Blakeout::default();
// write input message
hasher.input(b"hello world");
// read hash digest and consume hasher
let res = hasher.result_str();
assert_eq!(res, "6cc4bddb52416711be65e4b0201106fda4ceb0de48dfdce7e3a136e490d8586f");
lib.rs
:
An implementation of the Blakeout hash function.
Usage
Blakeout
can be used in the following way:
use crypto::digest::Digest;
use blakeout::Blakeout;
// create a Blakeout object, it will hash your bytes for you
let mut hasher = Blakeout::default();
// write input message
hasher.update(b"hello world");
// read hash digest and consume hasher
let res = hasher.result_str();
assert_eq!(res, "6cc4bddb52416711be65e4b0201106fda4ceb0de48dfdce7e3a136e490d8586f");
Dependencies
~425KB