1// 2// License: 3// https://github.com/rapid7/metasploit-framework/blob/master/LICENSE 4// 5 6void xor(char* dest, char* src, char key, int len) { 7 for (int i = 0; i < len; i++) { 8 char c = src[i] ^ key; 9 dest[i] = c; 10 } 11} 12