project skeleton

This commit is contained in:
Lorenzo Torres 2026-01-08 12:40:03 +01:00
commit d9ee2c56f2
8 changed files with 237 additions and 0 deletions

10
password.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef PASSWORD_H
#define PASSWORD_H
void generate_salt(char *salt_buffer);
/* Returns a malloc'd string containing the full hash (including salt) */
char* hash_password(const char *password);
/* Returns 1 if match, 0 if fail */
int verify_password(const char *password, const char *stored_hash);
#endif