-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (38 loc) · 1.38 KB
/
main.cpp
File metadata and controls
43 lines (38 loc) · 1.38 KB
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
#include <limits>
#include "bpace.h"
int main() {
Bpace bpace = Bpace("334780", Pwd::CAN);
std::cout << bpace.authorize() << std::endl;
bpace.getName();
// CardSecure card = CardSecure();
// card.initSecure(bpace.getKey().data());
// while (true) {
// std::cout << "Enter operation code (1 - data groups, 2 - sign): ";
// int operation;
// while (true) {
// if (std::cin >> operation) {
// std::cin.clear();
// std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
// break;
// } else {
// std::cout << "Please enter a valid integer" << std::endl;
// std::cin.clear();
// std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
// }
// }
// switch (operation) {
// case 1: {
// std::string password;
// std::cout << "Enter CAN code: ";
// std::getline(std::cin, password);
// if (password.size() < 6) {
// continue;
// }
// Bpace bpace = Bpace(password, Pwd::CAN);
// bpace.authorize();
// CardSecure card = CardSecure();
// card.initSecure(bpace.getKey().data());
// }
// }
// }
}