bcrypt-bsd 0.1.1

Rust wrapper around BCrypt implementation in C
Documentation

Rust wrapper around the BCrypt hashing algorithm implementation written in C by Solar Designer.

The C code is embedded into this crate and compiled using build script.

Example

use bcrypt_bsd::{gen_salt, hash};

let salt = gen_salt(12).unwrap();
let bcrypt_hash = hash("Password", salt).unwrap();
println!("hash: {}", bcrypt_hash);