Wednesday, 11 September 2013

8192 bit XOR encryption?

8192 bit XOR encryption?

If i have a string with 1024 chars and a simple xor algorithm would it be
still easily crackable ?
const unsigned char Key[1024] = {0x.........};
void EncodeBuffer(unsigned char Buffer[],unsigned int Size) {
unsigned int i = 0,c = 0;
while (i < Size) {
while(c < 1024)
Buffer[i] ^= Buffer[c++];
i++;
c = 0;
}
}

No comments:

Post a Comment