1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
void hello(int t){
std::cout << "Hello" << std::endl;
std::cout << std::to_string(t) << std::endl;
}
// function to get my void rawdata
vector<unsigned char> getMyFunctionRawData(){
// Some code here to return rawdata of my hello function
}
// after this i must encrypt the rawdata, have many ways, it simple.
// Let's Consider this is my encrypted rawdata
vector<unsigned char> rawdata = {
0x7B,0x1E,0xE1,0xCE,0x13,0x33,0x66,0x37,
0xE6,0x96,0x53,0x39,0xA3,0x94,0x0D,0x2C,
...
};
// and finaly runing decrypted raw data as function with arguments
void run(vector<unsigned char> raw, int t){
auto decryptedRawdata = decryptMyRaw(rawdata);
// some function to run my decrypted raw data,
}
| |