easy-hasher

Easy hashing library for Rust

Hashing functions (example with SHA256): - Raw binary data hash: sha256(&input) - String hash: string_sha256(&input)


Supported hashing algorithms:

File hashing support is coming soon too.

String SHA256 hash example:

```rust extern crate easyhasher; use easyhasher::easy_hasher::*;

fn main() { let string = "example string".tostring(); let hash = stringsha256(&string);

assert_eq!(hash[..],
           hex_literal::hex!("aedfb92b3053a21a114f4f301a02a3c6ad5dff504d124dc2cee6117623eec706")[..]);
println!("sha256({}) = {}", string, hex_string(hash));

} ```