Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- int main()
- {
- std::vector<unsigned char> decryptedBuf;
- for (int i = 0; i < 50; i++)
- {
- decryptedBuf.push_back(0x68); // 'h'
- decryptedBuf.push_back(0x65); // 'e'
- decryptedBuf.push_back(0x6C); // 'l'
- decryptedBuf.push_back(0x6C); // 'l'
- decryptedBuf.push_back(0x6F); // 'o'
- decryptedBuf.push_back(0x20); // ' '
- }
- std::cout << "decryptedBuf size: " << decryptedBuf.size() << std::endl;
- // encrypt(decryptedBuf)
- // decrypt(decryptedBuf) // same result of buffer before encrypt ? if yes encrypt is okay !
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement