Advertisement
amgineyoc

Untitled

Aug 30th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6.     std::vector<unsigned char> decryptedBuf;
  7.     for (int i = 0; i < 50; i++)
  8.     {
  9.         decryptedBuf.push_back(0x68); // 'h'
  10.         decryptedBuf.push_back(0x65); // 'e'
  11.         decryptedBuf.push_back(0x6C); // 'l'
  12.         decryptedBuf.push_back(0x6C); // 'l'
  13.         decryptedBuf.push_back(0x6F); // 'o'
  14.         decryptedBuf.push_back(0x20); // ' '
  15.     }
  16.     std::cout << "decryptedBuf size: " << decryptedBuf.size() << std::endl;
  17.  
  18.     // encrypt(decryptedBuf)
  19.     // decrypt(decryptedBuf) // same result of buffer before encrypt ? if yes encrypt is okay !
  20.  
  21.     getchar();
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement