Defines | Functions

eurephia_saltdecode.c File Reference

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)

Detailed Description

Simple utility which decodes a eurephia SHA512 hash salt.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-03-29

Definition in file eurephia_saltdecode.c.


Define Documentation

#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.


Function Documentation

unsigned int get_salt_p2 ( const char *  pwd  )  [inline]

Generates a phase2 salt value from a password.

Parameters:
pwd Input hash
Returns:
Returns an int value containing the phase2 salt information

Definition at line 50 of file eurephia_saltdecode.c.

int main ( int  argc,
char **  argv 
)

saltdecode main function

Parameters:
argc argument counter
argv argument table
Returns:
Returns 0 on success, otherwise 1.

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

Parameters:
insalt Input eurephia SHA512 salt string
pwd Users password
Returns:
Returns the decoded salt information, containing hashing rounds and salt length.

Definition at line 74 of file eurephia_saltdecode.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines