initial commit
[mnenc] / mnenc.hpp
diff --git a/mnenc.hpp b/mnenc.hpp
new file mode 100644 (file)
index 0000000..28ecd83
--- /dev/null
+++ b/mnenc.hpp
@@ -0,0 +1,42 @@
+//      mnenc.hpp
+//      
+//      Copyright 2010 Micke Nordin <mickewiki@gmail.com>
+//      
+//      This program 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 3 of the License, or
+//      (at your option) any later version.
+//      
+//      This program 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 this program; if not, write to the Free Software
+//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+//      MA 02110-1301, USA.
+
+
+#ifndef _mnenc_h_included_
+#define _mnenc_h_included_
+#include <iostream>
+#include <string>
+#include <fstream>
+#include <cstdlib>
+#include <ctime>
+
+
+class mnenc{
+       private: 
+               std::string key;
+               
+       public:
+               mnenc();
+               void genkey(std::string str);
+               std::string encrypt(std::string key, std::string str);
+               std::string decrypt(std::string key, std::string passwd);
+               std::string get_key();
+};
+
+#endif