19 lines
443 B
C
19 lines
443 B
C
|
|
#ifndef USER_DATA_H
|
||
|
|
#define USER_DATA_H
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Hash_Password
|
||
|
|
*
|
||
|
|
* password: this is the password in plane text
|
||
|
|
* out: this is the ouput hash of the function.
|
||
|
|
*
|
||
|
|
* NOTE: *This uses sha256 hashing.*
|
||
|
|
*
|
||
|
|
* this will return a unsigned char* that contains the hash.
|
||
|
|
* returns if zero or less then the hashing has failed other wise it is the len
|
||
|
|
* of the password hash.
|
||
|
|
* */
|
||
|
|
int Hash_Password(const char* password,unsigned char* out);
|
||
|
|
|
||
|
|
#endif
|