Skip to content

About

A Rust wrapper for OS-level cryptographic hash functions

Resources

Contributing

Stars

28 stars

Watchers

2 watching

Forks

Latest commit

 

History

100 Commits

Folders and files

Repository files navigation

crypto-hash

Linux/OS X Status Windows status Crates.io

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.

Supported Implementations

By operating system:

Supported Algorithms

  • MD5
  • SHA1
  • SHA256
  • SHA512

Usage

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.

Acknowledgements

This crate was inspired by rust-native-tls and crypto-bench.

Legal

crypto-hash is copyrighted under the terms of the MIT license. See LICENSE for details.

About

A Rust wrapper for OS-level cryptographic hash functions

Resources

Contributing

Stars

28 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages