6 lines
136 B
C
6 lines
136 B
C
|
void xor(char* dest, char* src, char key, int len) {
|
||
|
for (int i = 0; i < len; i++) {
|
||
|
char c = src[i] ^ key;
|
||
|
dest[i] = c;
|
||
|
}
|
||
|
}
|