CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/headers/windows/xor.h
Views: 1904
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