#bcrypt #password-hashing #base64 #salt #hash #security

mini-rcrypt

A minimal Rust implementation of OpenBSD Blowfish password hashing code

2 releases

0.1.1 May 7, 2023
0.1.0 May 7, 2023

#1546 in Cryptography

21 downloads per month

MIT license

36KB
733 lines

mini-rcrypt: A minimal Rust implementation of OpenBSD Blowfish password hashing code.

Usage

use mini_rcrypt::BCrypt;

let salt = BCrypt::gensalt(5).unwrap();
let hash = BCrypt::hashpw("test".to_owned(), salt).unwrap();
let check = BCrypt::checkpw("test".to_owned(), hash);

assert!(check);

No runtime deps