Hacker News new | ask | show | jobs
by ultramancool 3696 days ago
You'd have to rely on a ball of jumbled crap somewhere in the PR though - maybe if they don't wrap lines or something you could slip it in?
1 comments

I'd be XORing against some existing strings in the code of the same length to obfuscate the content, with some hidden method to invoke the reverse XOR to regenerate this challenge text string.
Sure, hiding it as a basic string is easy. But hiding it in a way that a simple code review won't catch is probably a lot harder.
I think some array manipulation could do it if you're clever enough and don't make it obvious where all of the inputs comes from. So you'd make some particular parameters regenerate the string, and it wouldn't obviously stand out from the normal behavior.
That sounds very difficult to hide