thenuke321

Untitled

Jan 3rd, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.90 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <thread>
  4. #include <Windows.h>
  5. #include <stdio.h>
  6. #include <vector>
  7. #include <stdlib.h>
  8. #include <fstream>
  9. #include <array>
  10. #include "code.h"
  11.  
  12. using namespace std;
  13.  
  14. string theTotalData[4];
  15. void test1()
  16. {
  17.     stringAesCypher Function;
  18.     Function.encode(theTotalData[0],"1234",theTotalData[2]);
  19.     Function.decode(theTotalData[2],"1234",theTotalData[0]);
  20. }
  21.  
  22. void test2()
  23. {
  24.     stringAesCypher Function;
  25.     Function.encode(theTotalData[1],"1234",theTotalData[3]);
  26.     Function.decode(theTotalData[3],"1234",theTotalData[1]);   
  27. }
  28.  
  29. int main ()
  30. {
  31.     /*
  32.     Core Function;
  33.     Function.setMode("E");
  34.     Function.setKey("1234");
  35.     Function.readFileEncode("in","out");
  36.     */
  37.     string stupidThing(9000,'0');  
  38.     theTotalData[0] = stupidThing;
  39.     theTotalData[1] = stupidThing; 
  40.             thread t1(test1);
  41.             thread t2(test2);  
  42.             t1.join();
  43.             t2.join();
  44.     system("pause");
  45. }
Advertisement
Add Comment
Please, Sign In to add comment