I went to a website for XOR encryption and found the code but i don't get what char*out is needed for and how i would out put the encrypted data to the screen any help thank you!
Code:#include <iostream.h> void XOREncrypt(const char* Text, const char* Key, char* Out) { long CurIndex = 0, KeyIndex = 0; delete[] Out; Out = new char[strlen(Text)]; for(CurIndex = 0; CurIndex < strlen(Text); CurIndex++) { Out[CurIndex] = Text[CurIndex] ^ Key[KeyIndex]; KeyIndex++; if(KeyIndex == strlen(Key)) KeyIndex = 0; } } int main() { XOREncrypt("I dont get it", "(Ta5!34hEf$", ""); }