project skeleton
This commit is contained in:
commit
d9ee2c56f2
8 changed files with 237 additions and 0 deletions
10
password.h
Normal file
10
password.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue