-
Notifications
You must be signed in to change notification settings - Fork 0
/
Passwords.h
35 lines (24 loc) · 904 Bytes
/
Passwords.h
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
#pragma once
#include <string>
#include <vector>
#include "db_lite.h"
std::string EandD(const std::string& s, const std::string& key); //Encryption and Description
class psw : public sql {
public:
//psw()= default;
psw(const int& uid, const std::string& k, bool allow);
void Insert(const std::string& name, const std::string& login,
const std::string& password, const std::string& comment = "");
void Update(const std::string& field, const std::string& value,
const std::string& where_field, const std::string& wvalue);
void Select(const std::string& field, const std::string& where_field, const std::string& where_value);
//get IDs
std::vector<int> SelectID();
std::vector<std::string> SelectAll();
void Delete(const std::string& field, const std::string& value);
int getUser_ID() const;
private:
const std::string key;
const int User_ID;
const bool allowLogin;
};