rebuild file structur + simple sqlite db endpoint

This commit is contained in:
2025-09-04 22:32:53 +02:00
parent 3db51cc805
commit 3450c216c0
20 changed files with 748 additions and 49 deletions

10
src/utils/hash.rs Normal file
View File

@@ -0,0 +1,10 @@
use bcryp::{hash, verify, DEFAULT_COST};
pub fn bcrypt_hash(password: &str) -> Result<String, BcryptError> {
hash(password, 5)
}
pub fn bcrypt_verify(password: &str, hashed_password: &str) -> Result<String, BcryptError> {
verify(password, hashed_password)
}