Daemon compiles now
[mnenc] / libmnenc / mnenc_test.cpp
1 #include <iostream>
2 #include <mnenc.hpp>
3
4 using namespace std;
5
6 int main(int argc, char** argv)
7 {
8         mnenc micke; //Declare a encryptor/decryptor
9         micke.encrypt("Blahonga"); //Encrypt the password Blahonga
10         micke.decrypt(micke.get_enc()); //Decrypt the password
11         cout << micke.get_enc() << endl; //Display encrypted password
12         cout << micke.get_dec() << endl; //Display decrypted password
13         micke.to_file("deletethistestfile.txt"); //Save to file
14         micke.from_file("deletethistestfile.txt"); //Read from file
15         cout << micke.get_enc() << endl; //Display encrypted password
16         cout << micke.get_dec() << endl; //Display decrypted password
17
18         return 0;
19 }