Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <thread>
- #include <Windows.h>
- #include <stdio.h>
- #include <vector>
- #include <stdlib.h>
- #include <fstream>
- #include <array>
- #include "code.h"
- using namespace std;
- string theTotalData[4];
- void test1()
- {
- stringAesCypher Function;
- Function.encode(theTotalData[0],"1234",theTotalData[2]);
- Function.decode(theTotalData[2],"1234",theTotalData[0]);
- }
- void test2()
- {
- stringAesCypher Function;
- Function.encode(theTotalData[1],"1234",theTotalData[3]);
- Function.decode(theTotalData[3],"1234",theTotalData[1]);
- }
- int main ()
- {
- /*
- Core Function;
- Function.setMode("E");
- Function.setKey("1234");
- Function.readFileEncode("in","out");
- */
- string stupidThing(9000,'0');
- theTotalData[0] = stupidThing;
- theTotalData[1] = stupidThing;
- thread t1(test1);
- thread t2(test2);
- t1.join();
- t2.join();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment