mini-rcrypt

Crates.iomini-rcrypt
lib.rsmini-rcrypt
version0.1.1
sourcesrc
created_at2023-05-07 18:48:15.706853
updated_at2023-05-07 18:56:31.27019
descriptionA minimal Rust implementation of OpenBSD Blowfish password hashing code.
homepagehttps://github.com/Guilherme775/rcrypt
repositoryhttps://github.com/Guilherme775/rcrypt
max_upload_size
id859331
size35,021
Guilherme dos Reis Meira (Guilherme775)

documentation

README

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);
Commit count: 8

cargo fmt