multihash implementation in Rust.
First add this to your Cargo.toml
toml
[dependencies]
multihash = "*"
Then run cargo build
.
```rust use multihash::Code;
fn main() { let hash = Code::Sha2_256.digest(b"my hash"); println!("{:?}", hash); } ```
SHA1
SHA2-256
SHA2-512
SHA3
/Keccak
Blake2b-256
/Blake2b-512
/Blake2s-128
/Blake2s-256