C++ XOR key is too long?
I have a XOR key (dfficvvifvdfher89429338jwesjcnasidneufhrfdfha23p3rwe23323nc开发者_如何学Pythondnhj) but it seems to be way too long, even for long long format.
How can I use this key and get rid of "error C2177: constant too big"?
Put each value into a distinct char in a char array, i.e.:
const char xor_key[] = "dffic...";
You then XOR however-many characters against the key at a time, then use the key again at the next character after that.
精彩评论