1

I have a XOR key (dfficvvifvdfher89429338jwesjcnasidneufhrfdfha23p3rwe23323ncdnhj) 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"?

Phant0m
  • 25
  • 3

1 Answers1

4

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.

Tony Delroy
  • 102,968
  • 15
  • 177
  • 252