-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.hpp
55 lines (44 loc) · 1.13 KB
/
header.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef passwordkeeper_header
#define passwordkeeper_header
#include <string>
#include <vector>
using namespace std;
#define SEPARATOR " #@?sep?@# "
#define SPACESEP "?^sp^?"
struct entry{
string place,user,pass;
void enc(string);
void dec(string);
};
extern string homePath, mainFolderPath, privateKeyHashPath, passwordListPath;
extern vector <entry*> Entries;
//~ string removeSpaces ( string );
//~ string addSpaces ( string );
string hashPassword( string );
//~ string encrypt ( string , string );
//~ string decrypt ( string , string );
//~ string sha256( string );
string strToAst( string );
string questionForm( string );
string hiddenQuestionForm( string );
bool decisionForm( string );
vector <string> splitString( string , string );
void initPath();
vector <int> searchEntry( string );
bool searchCollisions( entry* );
void add();
void remove();
void retrieve();
void retrieveAll();
void importPasswords();
void exportPasswords();
void changePrivateKey();
void choosePrivateKey();
void destroy ();
void savePrivateKeyHash();
void save();
void setPrivateKey( string );
//~ void init ();
//~ void readAllPass();
//~ bool login ();
#endif