--- /dev/null
+// password.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 _password_h_included_
+#define _password_h_included_
+#include <string>
+
+class password {
+ private:
+ std::string encryptedpw;
+ std::string decryptedpw;
+ std::string key;
+ public:
+ password(std::string enc, std::string dec, std::string k);
+ void to_string();
+ std::string get_enc() {return encryptedpw;}
+ std::string get_dec() {return decryptedpw;}
+ std::string get_key() {return key;}
+ bool to_file(std::string filename);
+ bool from_file(std::string filename);
+};
+#endif