#hashing #hash #abstraction-layer #algorithm #wrapping

hashlib

Provide various hash algorithms under a same abstraction layer

1 unstable release

0.1.0 Dec 25, 2018

#39 in #wrapping

26 downloads per month

Apache-2.0 OR MIT

25KB
479 lines

Rust-HashLib

License Travis CI

An abstraction layer for wrapping implementations of various hash algorithms.

This crate DO NOT implement any hash algorithms.

My intention is to create an abstraction layer for various hash algorithms, so as to change the specific hash algorithm without care about the specifics of the code.

Crates

Name Crate Documentation Description
hashlib-prelude Prelude Badge Prelude Doc An abstraction layer.
hashlib Algorithms Badge Algorithms Doc Various hash algorithms.

Built-in Algorithms

Since this crate doesn't implement any hash algorithms, some real hash algorithms crates are used as backend.

Name Backend Crate
md5 md5
sha1 sha1
sha2 sha2
keccak tiny-keccak
blake2b blake2b_simd

License

Licensed under either of Apache License, Version 2.0 or MIT License, at your option.


lib.rs:

Provide various hash algorithms.

Dependencies

~1.1–1.6MB
~38K SLoC