Implement of :

Sha1
Sha224
Sha384
Sha256
Sha512
and some minor fix
This commit is contained in:
2017-03-22 21:31:39 +01:00
parent ccf8090aeb
commit 8ed93f04fa
6 changed files with 59 additions and 36 deletions

View File

@@ -17,6 +17,11 @@ class RH_Encryption
{
public:
RH_Encryption();
static function<string (string)> getFunctionHashLambda(string hashMethode);
//static function<string (string)> hashForLambda(function<string(string)> functionLambda, string value);
virtual ~RH_Encryption();
protected:
private:
static function<string (string)> none();
static function<string (string)> md5();
static function<string (string)> sha1();
@@ -24,10 +29,7 @@ class RH_Encryption
static function<string (string)> sha384();
static function<string (string)> sha256();
static function<string (string)> sha512();
//static function<string (string)> hashForLambda(function<string(string)> functionLambda, string value);
virtual ~RH_Encryption();
protected:
private:
static string bytesArrayToStrinctString(uint8_t, unsigned char*);
};
#endif // RH_ENCRYPTION_H

View File

@@ -56,7 +56,6 @@ class ProcessBruteForce
void operator()();
virtual ~ProcessBruteForce();
private:
function<string(string)> getFunctionHash(string hashMethode);
void bruteForce();
void recursiveFunction(uint32_t index);
void testSpeed(string currentWord);