@TrollDecker yeah i thought that's what that is but

ugh it feels so impenetrable to me and

that makes me think i shouldn't be a programmer and should leave college and rethink a new career path (not that i currently have one because i already do not want to be a programmer professionally) before i'm 30

@squirrel @TrollDecker Oh gosh. The overwhelming majority of programming problems are nowhere /near/ this hard. Please don't feel discouraged.

@TrollDecker @squirrel @Elizafox A quick run-down:

"input" is a list of values that correspond to positions in the "confusion" list.

When you run the Forward() function, it fills the "output" list with the values that the "input" list refers to in "confusion". Then it does some bitwise math on them to generate a new list of values, assigns this to the "input" list, and clears the "output" list.

It does this 256 times.

It then does more bitwise math and converts the result to a string.

@Elizafox @squirrel @TrollDecker It's like: imagine you have a list of numbers from 1-26, corresponding to letters in the alphabet.

The function takes each number in the list, converts it to a letter, does some math to turn it /back/ into a /different/ number from 1-26, and puts it back in the list. It does that 256 times and then returns the sequence of letters that the final list represents.

@noelle @TrollDecker @squirrel @Elizafox Honestly, for most of us it'd be quicker to just brute force the bastard, and there are 4*10^26 combinations so that'd take a little while

@squirrel @TrollDecker That looks like one of the puzzles GCHQ put out occasionally on recruiting drives

Not for us mere mortals to solve any time soon

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!