diff --git a/data/auth.sqlite b/data/auth.sqlite index 298dc3e..29583aa 100644 Binary files a/data/auth.sqlite and b/data/auth.sqlite differ diff --git a/markbase-core/src/provider/sqlite.rs b/markbase-core/src/provider/sqlite.rs index 6144eaf..86f06a4 100644 --- a/markbase-core/src/provider/sqlite.rs +++ b/markbase-core/src/provider/sqlite.rs @@ -261,3 +261,14 @@ mod tests { assert!(dir.is_some()); } } + +#[test] +fn test_bcrypt_hash() { + let password = "demo123"; + let hash = bcrypt::hash(password, bcrypt::DEFAULT_COST).unwrap(); + println!("Hash for demo123: {}", hash); + + // Verify the hash works + let valid = bcrypt::verify(password, &hash).unwrap(); + assert!(valid); +}