- The message is an English sentence
- Start at 0,0 and wrap around after 15
- There are only 5 instructions
- There is randomness involved but every byte has a purpose
No other encryption or compression is used, this is something I invented a few years ago. It's not really effective if you know how to break it. I don't think you could do it by hand, but you will need a table.
If this takes a long time to solve I'll post the program I used to generate it (it only encrypts though because I just threw it together quickly).
It wasn't written in C++, that would have taken too long - it's just a simple app that I threw together in under ten minutes :p if you're willing t pay for the software that I made it in you can definitely have the source.
@ LB: When you say "Wrap around after 15" are you telling us that the key is 15 characters long? Also, by "There are only 5 instructions" do you mean that there are 5 layers of encryption? Sorry Crypt-analysis is an on again off again hobby for me, I'm not too familiar with the terminology.
The key is that 16x16 grid in the application (does 15 sound familiar now?). And I don't know what you mean by control characters. I can easily write an application to reverse the encryption. If you don't figure it out I might even write it in C++ :p
@ LB: OK, I'll give in. I actually stopped trying at this sometime last night and haven't been able to build enough interest to go at it again. To me it looks like a bad cipher, its not that it doesn't encode the same character the same way twice in a row since I expect someone at your level would be seeding it anyway. My problem is that it doesn't encode them to the same length every time, which is why I suspect you did not filter out control characters such as 'delete' from the possible output. I even tried to account for white space being part of the cipher but either I am really bad at this or your "code" isn't reversible. If you did do all of this on purpose though, let me say that I thought it was a pretty good idea to put EOF in the sample output you provided, that one had me going for a minute.
I think I tried that already, I know you're seeding it with something else besides keyboard strokes (maybe mouse movements?) either that or you're not accurately counting the number of arrow key presses (less likely).
The test I did wasn't to in depth, I simply output the first character, null, then renamed the resulting file and did the same thing again. In Notepad++ the first file displays as "GS" and the second one is a "xEO", which I could translate to their integer values and look up in the ASCII chart to see what they are but I have already seen enough to know that the cipher isn't consistent.
I tried something similar with 'A' using the same key presses, but that doesn't even encrypt to the same length consistently so I must be missing something.
OK, so I gave up way too early then and I probably should have looked at your clues a little better. I see what you did here. When you mentioned the wrap around after 15 I was expecting a straight forward Vigenère or a Key cipher which is why I got suspicious when I noticed the control characters. But you wouldn't need to filter for them in this case (But I noticed you swapped them out for white space anyway). You win this round.
EDIT: Does anyone thing it would make things too easy if we named the type of cipher? Not like the length of the key or anything that would immediately give it away like that.
(But I noticed you swapped them out for white space anyway).
That's not my doing, that's just how the Windows console represents control characters.
Also, I'm not really into encryption or cyphers that much, this is the only encryption I am really familiar with because as far as I know I invented it (or at least came up with the idea independently while it was already invented) so you probably know a lot more than me.
Out of curiosity, how strong is this encryption? There's some factors to consider here. In my example there are five instructions, and I take he remainder of division from the randomized value to get which instruction it is. I cold use any set of numbers for each kind of instruction, and I could also have nop instructions and backspace instructions, shift instructions, etc. or even multiple bytes per instruction. I could also change the character grid so instead of 16x16 of the usual ASCII chart, it could be scrambled. Therefore the key would be the chart used and also the instructions and their values.