-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (35 loc) · 1.23 KB
/
main.cpp
File metadata and controls
43 lines (35 loc) · 1.23 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 <iostream>
#include "affine.cpp"
#include "transposition.cpp"
using namespace std;
int main(int argc, char** argv)
{
int choice;
cout<<"==========================================================="<<endl;
cout<<"====================Lil' Crypto Decoder===================="<<endl;
cout<<"==========================================================="<<endl;
cout<<"== 1. Affine Cipher Decryption =="<<endl;
cout<<"== 2. Transposition Cipher Decryption =="<<endl;
cout<<"==========================================================="<<endl;
cout<<endl;
cout<<'\t'<<"Choice: ";
cin>>choice;
cout<<endl;
cout<<"==========================================================="<<endl;
switch(choice)
{
case 1:
affine();
cout<<"== Affine Cipher's guesses @ output.txt =="<<endl;
break;
case 2:
transposition();
cout<<"== Transposition Cipher's guesses @ output.txt =="<<endl;
break;
default:
cout<<"== Wrong Choice. =="<<endl;
cout<<"== Abrupt Exit in 3...2...1... =="<<endl;
}
cout<<"==========================================================="<<endl;
return 0;
}