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