-
Notifications
You must be signed in to change notification settings - Fork 0
/
decoder.h
29 lines (18 loc) · 1.08 KB
/
decoder.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
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
vector<vector<string> > encryptVec {{'a','z'},{'b','y'},{'c','x'},{'d','w'},{'e','v'},
{'f','u'},{'g','t'},{'h','s'},{'i','r'},{'j','q'},
{'k','p'},{'l','o'},{'m','n'},{'n','m'},{'o','l'},
{'p','k'},{'q','j'},{'r','i'},{'s','h'},{'t','g'},
{'u','f'},{'v','e'},{'w','d'},{'x','c'},{'y','b'},
{'z','a'}};
vector<vector<string> > decryptVec {{'a','z'},{'b','y'},{'c','x'},{'d','w'},{'e','v'},
{'f','u'},{'g','t'},{'h','s'},{'i','r'},{'j','q'},
{'k','p'},{'l','o'},{'m','n'},{'n','m'},{'o','l'},
{'p','k'},{'q','j'},{'r','i'},{'s','h'},{'t','g'},
{'u','f'},{'v','e'},{'w','d'},{'x','c'},{'y','b'},
{'z','a'}};;
char encryptText(char charInFile);