10 lines
307 B
C
10 lines
307 B
C
#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
|