yeet
This commit is contained in:
14
src/bin/hash_password.rs
Normal file
14
src/bin/hash_password.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use bcrypt::{hash, DEFAULT_COST};
|
||||
|
||||
fn main() {
|
||||
let password = "admin123";
|
||||
match hash(password, DEFAULT_COST) {
|
||||
Ok(hashed) => {
|
||||
println!("Password: {}", password);
|
||||
println!("Hash: {}", hashed);
|
||||
},
|
||||
Err(e) => {
|
||||
println!("Error hashing password: {}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user