2 unstable releases

Uses old Rust 2015

0.3.0 Jul 15, 2017
0.2.0 Jun 1, 2016
0.1.0 Jun 1, 2016

#170 in #checksum

MIT license

3KB

djb33-rs

DJB33 hash algorithm write in Rust

Run example

$ cargo run --example djb33-example

Installation

Add djb33 via your Cargo.toml

[dependencies]
djb33 = "*"

Usage

extern crate djb33;

fn main() {
    let s = "HelloWorld.";
    
    let mut h1 = djb33::DJB33_INIT;
    h1 = djb33::djb33(h1, s.as_bytes());
    
    let h2 = djb33::djb33_xor(djb33::DJB33_INIT, s.as_bytes());
    
    println!("djb33 {}", h1);
    println!("djb33 xor {}", h2);
}

License

MIT

No runtime deps