开发者

C++ XOR key is too long?

开发者 https://www.devze.com 2023-02-14 23:58 出处:网络
I have a XOR key (dfficvvifvdfher89429338jwesjcnasidneufhrfdfha23p3rwe23323nc开发者_如何学Pythondnhj) but it seems to be way too long, even for long long format.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号