multihash implementation in Rust.
First add this to your Cargo.toml
toml
[dependencies]
multihash = "*"
```rust crate extern multihash
use multihash::{encode, decode, HashType};
let hash = encode(HashTpype:SHA2256, "my hash").unwrap(); let multi = decode(&hash).unwrap(); ```
SHA2 256
SHA2 512
This uses libsodium and sodiumoxide for the hashing so it depends on libsodium being installed.