Crates.io | crypto-hash |
lib.rs | crypto-hash |
version | 0.3.4 |
source | src |
created_at | 2016-06-27 01:08:18.960899 |
updated_at | 2019-08-18 06:55:25.755576 |
description | A wrapper for OS-level cryptographic hash functions |
homepage | |
repository | https://github.com/malept/crypto-hash |
max_upload_size | |
id | 5508 |
size | 28,926 |
crypto-hash
crypto-hash
is a Rust wrapper around OS-level implementations of cryptographic hash functions.
The purpose of this crate is to provide access to hash algorithms with as few dependencies as possible. This means that when possible, the library uses the hashing functions that are provided by the given operating system's bundled cryptographic libraries.
By operating system:
Add crypto-hash
to your project's Cargo.toml
. For more details, consult the
Cargo guide.
Example:
use crypto_hash::{Algorithm, hex_digest};
let digest = hex_digest(Algorithm::SHA256, b"crypto-hash");
For more examples, consult the documentation.
This crate was inspired by rust-native-tls and crypto-bench.
crypto-hash
is copyrighted under the terms of the MIT license. See LICENSE for details.