This commit is contained in:
2025-08-10 10:31:10 -04:00
commit db767dcabc
26 changed files with 8170 additions and 0 deletions

14
src/bin/hash_password.rs Normal file
View 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);
}
}
}