diff --git a/Codes/CRC.cpp b/Codes/CRC.cpp new file mode 100644 index 0000000..5d61e8c --- /dev/null +++ b/Codes/CRC.cpp @@ -0,0 +1,36 @@ +#include +#include +using namespace std; + + +string XOR(string data, string key) { + // Dividend is data + // Divisor is the primary key, i.e. the key + string result = ""; + int len = data.length(); + + // Performing XOR operation + for (int i=0; i