Commit a28576da authored by Clément Février's avatar Clément Février

Fix typo from last commit + improved header

parent d2ef140d
......@@ -24,6 +24,9 @@
FRANCE
*/
#ifndef _FUNCTIONS_H_
#define _FUNCTIONS_H_
/* Return the hash SHA-1 of a string (input)
using libtomcrypt */
unsigned char * hashSHA1(const std::string & input);
......@@ -65,3 +68,5 @@ void findPassword(const unsigned char * hash, const std::string * list, const un
* l: Current length of the password to test.
* N_THREAD: Number of threads to launch. */
void findPasswordThread(const unsigned char * hash, const std::string & pass, const std::string * list, const unsigned short int & COUNT, const unsigned char & L, const unsigned char & l, const unsigned char N_THREAD);
#endif
......@@ -86,7 +86,7 @@ int main ()
//std::string HASH = "18 f3 f 1b a4 c6 2e 2b 46 e 69 33 6 b3 9a d e2 7d 74 7c";
//std::string HASH = "18 f3 f 1b a4 c6 2e 2b 46 e 69 33 6 b3 9a d e2 7d 74 7c";
// If set, ignore HASH and compute test's SHA-1 hash and attempt to crack it.
const std::string test = "fo";
const std::string test = "";
// Pointer used to store the SHA-1 hash.
unsigned char * hash;
// std::vector used to create hash.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment