2 RainbowCrack - a general propose implementation of Philippe Oechslin's faster time-memory trade-off technique.
4 Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
19 #define uint64 unsigned __int64
21 #define uint64 u_int64_t
36 struct FoundRainbowChain
56 #define MAX_PLAIN_LEN 256
57 #define MIN_HASH_LEN 8
58 #define MAX_HASH_LEN 256
59 #define MAX_SALT_LEN 256
61 unsigned int GetFileLen(FILE* file);
62 string TrimString(string s);
63 bool ReadLinesFromFile(string sPathName, vector<string>& vLine);
64 bool SeperateString(string s, string sSeperator, vector<string>& vPart);
65 string uint64tostr(uint64 n);
66 string uint64tohexstr(uint64 n);
67 string HexToStr(const unsigned char* pData, int nLen);
68 unsigned int GetAvailPhysMemorySize();
69 void ParseHash(string sHash, unsigned char* pHash, int& nHashLen);
70 bool GetHybridCharsets(string sCharset, vector<tCharset>& vCharset);