-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.cpp
71 lines (58 loc) · 1.57 KB
/
main.cpp
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include <iostream>
#include <cstdlib>
#include <string.h>
#include "KrakenKeys.h" //Key creation
using namespace std;
int main(int argc, char *argv[])
{
do {
cout << "///////////////////////// KRAKEN /////////////////////////" << endl;
cout << "/////////////// ed25519 Key Pair generator //////////////" << endl;
cout << endl;
int choix;
cout << "Please, choose an action" << endl;
cout << endl;
cout << "1 - Create ed25519 ECC public and private key pair" << endl;
cout << "2 - About KRAKEN" << endl;
cout << "3 - Leave" << endl;
cout << endl;
cin >> choix;
cout << endl;
cout << "/////////////////////////////////////////////////" << endl;
cout << endl;
if (choix > 3){
choix = 0;
}
while(cin.fail())
{
cin.clear();
cin.ignore();
choix = 0;
}
switch (choix)
{
case 0:
system("clear");
cout << "Please, choose correct number from menu" << endl;
cout << endl;
break;
case 1:
system("clear");
CreateKeys();
cout << endl;
break;
case 2:
system("clear");
cout << "KRAKEN is an experiment made for educational purposes." << endl;
cout << endl;
cout << endl;
cout << endl;
break;
case 3:
system("clear");
cout << "////// KRAKEN STOPPED //////" << endl;
return 0;
break;
}
} while (1);
}