Help is On the Way

Reader Orion has made a really cool Windows program that will do all the decrypting for you (if you have the pad). I think I’m going to redo the message, though, because I messed up a but (the word “GO” is part of the code; yes, my secret message has the word “GO” in it). More details soon.

No Comments

  1. It took me 20 minutes just to decrypt the first 3 words. Yeah, maybe I’m just slow. This is definitely challenging my loyalty. Do I work on the all-important code, or should I spend my time raising the kids. Hmmmm….dilemma.

  2. Wow, that’s pretty darn complicated, Frank. I think I’m gonna have to wait until finals are over before I have enough time to decode that whole thing. Maybe that can be my summer project… I mean, who needs a job when you have secret messages to read?

  3. For those of you using OS X, Panther (and possibly earlier versions) have a Hex calculator, you just have to turn it on. Here’s how:
      Navigate to where the Calculator is installed (likely the Applications folder.)
      Control click the application and select “Show Package Contents.”
      Navigate to Contents/Resources in the Calculator Contents. In this folder you will find:
        ExpressionSheet.calcview
        Graphing-2D.calcview
        Hexadecimal.calcview
      Copy these to the Contents/Plugins folder
    Then open calculator, and select View -> Hexadecimal.
    Apple, is there anything they can’t do? 🙂

  4. Gee…I feel like Ralphie in “A Christmas Story”. He finally gets his Little Orphan Annie decoder ring and the secret message says “Be sure to drink your Ovaltine”. I’m worried that by the time I decode an entire message, my four kids would have starved to death and then I would have to seriously maim Frank for depriving me of my chief source of labor and instruments to humiliate in public!

  5. Yeah, you set up all the windows, then you get lost. Tip: when writing down the answer and you get to the end of a line of code, skip to the next line on your paper (or the next line in notepad), so it’s easy to check your work. I got about about 3 lines done, then decided I had better things to do.

  6. I did a couple of lines, but decided to wait for a repost of the code, in case it is changed significantly. It’s going to take me a long time, so I might as well not make it take any longer than necessary. As it is, I’ll probably only be able to make myself do it a little bit at a time.

  7. That’s excellent, Orion. My only criticism is that it doesn’t handle carriage returns too gracefully.
    Presumably it can also automate the encoding for Frank, since XOR is reflexive. (is that the right term? I mean that “if A XOR B = C then C XOR B = A”)

  8. Yeah Clam, I made a reverse utility to make it really easy to generate the messages too – which should help remove errors.
    It had troubles with the EOL markers? I’m not surprised. I don’t have any Pads to test with, so I had to make my own for message testing – and I had to tweak a bit around the EOL’s.
    I’ll get a patch in for that and let y’all know when that’s in. Need a Pad first! 🙂 (I’ll make the patched executable available so you don’t have to reinstall).
    Anyone find the Easter Egg yet? LOL
    Orion

  9. Damn, nice work Orion! I actually whomped up a program in Java last night to do this. It isn’t exactly pretty (it’s command line only) but it might work in OS X (which, IIRC, has the latest version of java pre-loaded). This might be a bit tricky for some, but probably easier than XORing 512 numbers by hand. 🙂
    1) Download the source code here. Save it somewhere convenient.
    2) Open a new terminal window, navigate to the directoy where you saved the file, and type: javac decrypt.java
    3) If that worked, you should get a new file called decrypt.class.
    4) Save both the pad and the message to separate text files in the same directory as before, stripping out any blank lines.
    5) Type: java decrypt messagefile padfile
    If all goes well, you should get a success message, and a decrypted file called “decoded.txt”
    5a) If the above doesn’t work (i.e., you get cryptic error messages about classpaths and such), try typing this instead: java -cp . decrypt messagefile padfile
    Let me know if this works for you mac people. If it does, I’ll see if I can find the time to put together a better user interface, so nobody has to muck around with files. 🙂

  10. cerberus:
    I’m clueless with Terminal. I’m not sure exactly what you mean by “navigate to the directoy where you saved the file.” I went to “Open” from the “Shell” menu and navigated to the file that way, but it would not let me select it. (It was grey and all.) Is there some other way you mean to navigate to the file?

  11. cerberus:
    I’m clueless with Terminal. I’m not sure exactly what you mean by “navigate to the directoy where you saved the file.” I went to “Open” from the “Shell” menu and navigated to the file that way, but it would not let me select it. (It was grey and all.) Is there some other way you mean to navigate to the file?

  12. Secret decoding games aren’t really my bag. Will I have to give up my fan club membership?
    I could be the club bouncer I suppose. All those years of martial arts oughta count for something.
    Personal announcement: Today I shot all my weapons for the first time in about a year. I am still enjoying the afterglow of watching a target disintigrate at a 100 yards under a hail of .223 and .308 rounds.
    Viva la 2nd Amendment!

  13. cerberus:
    I tried just typing the line “javac decrypt.java” into the Terminal window and it responds “error: cannot read: decrypt.java
    “1 error”
    Also, when I try to paste the text from the downloaded file into the Terminal window, it sort of freezes the application. (The mouse cursor spins around indefinitely in its thinking mode.)
    The file “decrypt.java” downloads as a SimpleText document. Is that wrong?
    One other thing: did you mean to type “java decrypt.java” when you typed “javac decrypt.java”, or did you type correctly?

  14. Hmmm. I’m not as familiar as I should be with OS X, but I think if you select the folder that contains the file, it may do what’s needed.
    The other way to do it is, in the terminal window, type cd directoryname. “Directoryname” is the full name of the directory (or folder) that contains the file (for instance, if you saved it on the desktop, and your username is “steve” it would be /users/steve/library/desktop. If you feel up to it, you can poke around in the various folders by typing ls, which will list the contents of whatever folder you’re in. Also, pwd will list the full name of whatever folder you’re in.
    You can use the results of ls to navigate directories. I think (but I’m not sure) that directories will show up as a different color in OS X, so when you see a directory, you can cd into it.
    I hope this makes some sort of sense!

  15. Paulski: If you would, can you type ls -al | grep decrypt in the directory that contains decrypt.java and paste the results here? (the “|” character is shown on some keyboards as two vertical lines directly above one another. On my keyboard it’s Shift + \ )
    The file is just plain text, so, yeah, simpletext. And yes, “javac” is correct. Javac compiles the program, java runs it.

  16. What’s all this whining about? I’m older than Frank’s father & I could figure it out. Although, with relativity being what it is, I may be older than Frank’s grandfather before it’s done. My hair’s kinda fuzzy too. It took me four hours & a 12 pack of Guinness draft to get it done, so what?!!? I needed an excuse to drink all that beer. And another thing- what happened to #1 & #2!!!!!! And also, why do those little torpedoes keep frothing in my beer? OK, after 12 G’s, I’ll tell- it says “GO spank your monkey”. Now shaddup- I’ve got beer to drink…

  17. cerberus:
    I tried just typing the line “javac decrypt.java” into the Terminal window and it responds “error: cannot read: decrypt.java
    “1 error”
    Also, when I try to paste the text from the downloaded file into the Terminal window, it sort of freezes the application. (The mouse cursor spins around indefinitely in its thinking mode.)
    The file “decrypt.java” downloads as a SimpleText document. Is that wrong?
    One other thing: did you mean to type “java decrypt.java” when you typed “javac decrypt.java”, or did you type correctly?

  18. frank, I’ve got a grand idea! since you are basing your first 2 rules of the club on the first 2 rules of the movie fight club, you should give us our “homework” assignments, as send them to us in sealed envelopes! much less complicated for those of us who are 16!

  19. cerberus:
    I typed “ls -al | grep decrypt” into the directory containing the file decrypt.java (it’s a folder on my desktop). Here’s what spit back at me: “-rw-r–r– 1 paulsav staff 2102 Apr 17 22:20 decrypt.java”.
    Also, I since you helped me navigate into the correct folder, I typed in “javac decrypt.java” but it gave me a long error message with 4 different errors (coming from the java text, I think).
    And sorry again about the double post. I don’t know why it keeps doing that.

  20. Cerberus:
    When I tried to compile decrypt.java I got two errors. It expected a closing ‘)’ on lines 19 and 30. After fixing this, it asked for a trailing ‘;’ and with that in place it would compile, but when run I get
    ‘Exception in thread “main”‘ blah blah ‘For input string: “GO”‘ and had some more indecipherable (for me) errors.
    I also get an empty file called decoded.txt in that same directory.

  21. Tim: you got it right. That error is becuase Frank put the word “GO” into the rest of the text. Replace the GO with 00 (two zeros) and it should work okay.
    Note to self: put error checking in the next version. 🙂

  22. Paulski: Looks like I had a version with a couple of typos in it, as Tim appears to have noticed. If you try it now, it should run okay (make sure you replace that “GO” in the middle of it with 00, though).
    The text it produces is illegible in places. This appears to be becuase our illustrious Frank J. finds XORing 512 bytes as tedious as all of you do, and apparently he made a few errors. 🙂
    I’m gonna see if I can write up a version of this that doesn’t involve the command line, and is more friendly to you Mac people.

  23. To the rescue! 🙂
    Go to http://www.griffon-ltd.com/wodan.html
    Paste the appropriate one-time pad in the first box.
    Paste the secret message in the second box.
    Click on DECODE.
    The secret message will appear. (Or you can continue using Katana for you windows folks).
    Sorry that took me so long, but I had to teach myself Javascript (which appears to be a bastardized version of C and HTML with some other stuff tossed in for flavor). I borrowed heavily from SteveC’s Java page…
    And I missed an earlier question – Wakazachi is (probably missspelled) the short-sword version of the Katana…the Samurai carried both swords.
    Orion

  24. Quick note too – Wodan was developed and tested in Opera 7.23…I have NO idea if it’ll work in other browsers…I didn’t do anything even remotely weird in the Javascript, but as I said – I just taught myself, so I have no idea…
    Orion

  25. Guys, I have found the name of the man connected both to the attack of the US convoy which made the American hostages and the Shiite/Fallujah thread. His name is Sheik al-Karbalie, he is Shiite and rallies anti US insurgents from the Um-al-Kura mosque in Baghdad.
    I’ll comment later on my blog with the pictures. But here again, I need your help to alert the FBI.
    If this man is arrested, we might be able to find where the hostages are.

  26. Frank, you should install the alert function on IMAO so that when something important happens, I can wake up you all.
    BTW, have you ever seen this scene on a film. It’s about hostages exchange. The FBI exchange a prisoner against a VIP and when the exchange is done, the FBI agent says “you are under arrest”… something like that…
    I hope we can find a way to free the American hostages. Pray for them and the American troops. They need your support.

  27. Okay, this is the last time I’m apologizing for those double posts. If my computer wants to be a jerk, I’m not going say anything more about it. Let it be heard that this apology counts towards all future double posts.

  28. PATCHED!
    Sorry ’bout that. IE doesn’t like the ‘type=text/javascript’ modifier in the script tag, and I had an extra quote mark hanging out at the end.
    Apparently, Opera let’s you be a sloppy, naughty programmer and IE is a bit more stringent – which is quite different than I’m used to (Usually you can get away with anything in IE)
    I’ve now tested it in Opera 7.23 and IE 6…
    Orion

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.