Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/headers/windows/xor.h
21532 views
1
//
2
// License:
3
// https://github.com/rapid7/metasploit-framework/blob/master/LICENSE
4
//
5
6
void 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