diff --git a/Codes/CRC.cpp b/Codes/CRC.cpp index 5d61e8c..2e1a9d7 100644 --- a/Codes/CRC.cpp +++ b/Codes/CRC.cpp @@ -2,35 +2,62 @@ #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(); + int dataLen = data.length(); + int keyLen = key.length(); - // Performing XOR operation - for (int i=0; i