Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

google/rust-multihash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Multihash for Rust

rust-multihash is an implementation of the multihash algorithm that allows for multiple different hash algorithms to be contained in the same format. This makes it extensible as new hashing algorithms are added.

To use, add rust-multihash= "*" to your Cargo.toml file.

Example

To get a SHA2-256 hash of a string:

use multihash::{HashType, multihash};

let hash = multihash(HashType::SHA2256, "Hello World".to_vec());

Contributing

This is not an official Google project, but it is governed by the Google Contributor License Agreement. To contribute code please agree to the Google Contributor License Agreement. Then please feel free to fork and issue a pull request.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages