#hashing #sha-2 #hash #sha-1 #md5

shaman

A pure-Rust, cross-platform implementation of various common hashing algorithms

1 unstable release

Uses old Rust 2015

0.1.0 May 14, 2015

#2470 in Cryptography

Download history 217/week @ 2024-04-08 297/week @ 2024-04-15 231/week @ 2024-04-22 278/week @ 2024-04-29 251/week @ 2024-05-06 369/week @ 2024-05-13 283/week @ 2024-05-20 298/week @ 2024-05-27 313/week @ 2024-06-03 490/week @ 2024-06-10 373/week @ 2024-06-17 281/week @ 2024-06-24 241/week @ 2024-07-01 285/week @ 2024-07-08 386/week @ 2024-07-15 213/week @ 2024-07-22

1,155 downloads per month
Used in 12 crates (5 directly)

MIT/Apache

105KB
2K SLoC

Shaman

Build Status

A pure-Rust, cross-platform implementation of the SHA family of hashing algorithms.

Synopsis

Shaman is a kind-of fork of the popular, well-written rust-crypto library. Shaman seeks to be a cross-platform implementation of the SHA family of hashing algorithms. All of the extra functionality found within rust-crypto have been removed. Unless otherwise shown, all credit for implementing these algorithms goes to the original rust-crypto developers; I have done nothing but remove unnecessary code.

Usage

To use Shaman, add the following to your Cargo.toml:

[dependencies]
shaman = "*"

and the following to your crate root:

extern crate shaman;

Why Should I Use This?

That's the obvious question. Why should you use this library, when there's already a stable, widely used library available that provides the same (and more) functionality? Because you only want to generate SHA hashes. Rust-crypto, as wonderful as it is, provides a LOT of extra functionality that you may not want. Even if you're only using it to generate SHA hashes, you are still expected to download, compile, and link all of rust-crypto's dependencies. Seems a little unnecessary to me!

Personally, I believe that a library should Do One Thing And Do It Well. As useful as it is to have one large library available that suits all of your needs, if you only use it for a small subset of its features, you're wasting space. Even if your project has quite a bit of functionality, you won't get anything more than what you need.

License

Shaman, like it's upstream parent, is dual licensed under the MIT and Apache 2.0 licenses, the same licenses as the Rust compiler.

Dependencies

~540KB