Cryptographic Hash Functions in Rust
This is a Rust implementation of various cryptographic hash functions. The following algorithms are currently supported:
-
djb2
-
sdbm
-
MD5
-
SHA-1
-
SHA-2-224
-
SHA-2-256
-
SHA-2-384
-
SHA-2-512
-
SHA-3-224
-
SHA-3-256
-
SHA-3-384
-
SHA-3-512
Example
Here's an example of how to use the sha2::sha256
hash function:
use hash;
Enable "std" feature if you want to use Display, Debug of FromStr for the output of hash functions (i.e. for Digest struct).
License
This project is dual-licensed under the Apache License 2.0 and the MIT License. You may choose either license to use this software.