]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/HashSet.h
test
[freerainbowtables] / Client Applications / rcracki_mt / HashSet.h
index d3f410a0c38d5ff49d82b0dc8f01b2d6a1ed0c39..f7f37b227e5e8fb8f3af6dc52c525f12767894af 100644 (file)
@@ -1,59 +1,59 @@
-/*\r
- * rcracki_mt is a multithreaded implementation and fork of the original \r
- * RainbowCrack\r
- *\r
- * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>\r
- * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>\r
- * Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
- *\r
- * This file is part of rcracki_mt.\r
- *\r
- * rcracki_mt is free software: you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation, either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * rcracki_mt is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with rcracki_mt.  If not, see <http://www.gnu.org/licenses/>.\r
- */\r
-\r
-#ifndef _HASHSET_H\r
-#define _HASHSET_H\r
-\r
-#include "Public.h"\r
-\r
-class CHashSet\r
-{\r
-public:\r
-       CHashSet();\r
-       virtual ~CHashSet();\r
-\r
-private:\r
-       vector<string> m_vHash;\r
-       vector<bool>   m_vFound;\r
-       vector<string> m_vPlain;\r
-       vector<string> m_vBinary;\r
-\r
-public:\r
-       void AddHash(string sHash);             // lowercase, len % 2 == 0, MIN_HASH_LEN * 2 <= len <= MAX_HASH_LEN * 2\r
-       bool AnyhashLeft();\r
-       bool AnyHashLeftWithLen(int nLen);\r
-       void GetLeftHashWithLen(vector<string>& vHash, int nLen);\r
-       \r
-       void SetPlain(string sHash, string sPlain, string sBinary);\r
-       bool GetPlain(string sHash, string& sPlain, string& sBinary);\r
-\r
-       int GetStatHashFound();\r
-       int GetStatHashTotal();\r
-\r
-       string GetHashInfo(int i);\r
-       void AddHashInfo(string sHash, bool found, string sPlain, string sBinary);\r
-};\r
-\r
-#endif\r
+/*
+ * rcracki_mt is a multithreaded implementation and fork of the original 
+ * RainbowCrack
+ *
+ * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
+ * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>
+ * Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
+ * Copyright 2009, 2010 James Nobis <frt@quelrod.net>
+ *
+ * This file is part of rcracki_mt.
+ *
+ * rcracki_mt is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * rcracki_mt is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with rcracki_mt.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _HASHSET_H
+#define _HASHSET_H
+
+#include "Public.h"
+
+class CHashSet
+{
+public:
+       CHashSet();
+       virtual ~CHashSet();
+
+private:
+       vector<string> m_vHash;
+       vector<bool>   m_vFound;
+       vector<string> m_vPlain;
+       vector<string> m_vBinary;
+
+public:
+       void AddHash(string sHash);             // lowercase, len % 2 == 0, MIN_HASH_LEN * 2 <= len <= MAX_HASH_LEN * 2
+       bool AnyhashLeft();
+       bool AnyHashLeftWithLen(int nLen);
+       void GetLeftHashWithLen(vector<string>& vHash, int nLen);
+       
+       void SetPlain(string sHash, string sPlain, string sBinary);
+       bool GetPlain(string sHash, string& sPlain, string& sBinary);
+
+       int GetStatHashFound();
+       int GetStatHashTotal();
+
+       string GetHashInfo(int i);
+       void AddHashInfo(string sHash, bool found, string sPlain, string sBinary);
+};
+
+#endif