Simple utility which decodes a eurephia SHA512 hash salt. More...
#include <stdio.h>#include <string.h>#include <assert.h>#include <sys/param.h>#include <eurephia_nullsafe.h>#include <get_console_input.h>
Include dependency graph for eurephia_saltdecode.c:Go to the source code of this file.
Defines | |
| #define | ROUNDS_MIN 1000 |
| #define | ROUNDS_MAX 999999999 |
Functions | |
| unsigned int | get_salt_p2 (const char *pwd) |
| unsigned int | unpack_saltinfo (const char *insalt, const char *pwd) |
| int | main (int argc, char **argv) |
Simple utility which decodes a eurephia SHA512 hash salt.
Definition in file eurephia_saltdecode.c.
| #define ROUNDS_MAX 999999999 |
Maximum hashing rounds to acknowledge
Definition at line 40 of file eurephia_saltdecode.c.
| #define ROUNDS_MIN 1000 |
Minimum hashing rounds to acknowledge
Definition at line 39 of file eurephia_saltdecode.c.
| unsigned int get_salt_p2 | ( | const char * | pwd | ) | [inline] |
Generates a phase2 salt value from a password.
| pwd | Input hash |
Definition at line 50 of file eurephia_saltdecode.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
saltdecode main function
| argc | argument counter | |
| argv | argument table |
Definition at line 96 of file eurephia_saltdecode.c.
Here is the call graph for this function:| unsigned int unpack_saltinfo | ( | const char * | insalt, | |
| const char * | pwd | |||
| ) |
This function will unpack the salt information and "unscramble" it with a given password
| insalt | Input eurephia SHA512 salt string | |
| pwd | Users password |
Definition at line 74 of file eurephia_saltdecode.c.
Here is the call graph for this function:
1.7.1