[ Bloke.com || Linux || JavaScript || Java || Volleyball || Link Me ]
Free: [ Guestbook || MessageBot || Plugins || Counter || AusPrices || Advertise ]
www.bloke.com

Java Decode Filter

Java Decode Filter? What is that? Well it's a filter that will decode the output from od -X. Okay, so what is od -X? It is the hexadecimal output of a file.. It looks something like this.
0000000 53656e64 206d6520 6d79206b 65792066
0000020 2a72746b 6e6f636b 65722e0a
Which is the hexadecimal equivalent of the string:
Send me my key f*rtknocker.
So why the filter? Why the mystical od -X? Well you see I went to visit my very good friend Dave Reichert in Colorado. While I was there my friend borrowed his bike and ended up bringing the key back with her, leaving a rather hefty bike lock locked to his seat. As it turns out Dave races his mountain bike, and having a 5? pound lock secured firmly to his seat was not in his best interest. So after discovering that we had the key, he requested it. Several days (or was that weeks?) he calls me up:

Hay Dave, how's it going?
Did you send the key?
Yep Dave, it's in the mail.
Really??
No, Not Really

The frequency of calls and emails increased. He has another race coming up in a week.

Please send the key, I have another race this weekend, and I don't need to lug that thing around the track again.
Okay, Sure, I do it tomorrow

Sadly, I did not.

He then look a more inventive approach, realizing I am a hacker at heart he send me some bytes:

Stay tuned for the following subliminal ascii message.  
(ASCII is the language you dream in, right?)
 
0000000  4d61 696c 2074 6865 206b 6579 7320 4275
0000020  6e67 686f 6c65 6f2c 206f 7220 6265 2063
0000040  7572 7365 6420 7769 7468 2061 2057 696e
0000060  6765 7220 7368 6972 7420 666f 7220 6c69
0000100  6665 210a
0000104
 
Later,
4461 7665
I wish I could say that I immediately recognized it. Well I almost did, but only the capital letters, so it didn't make any sense. Once I realized my error, I proceeded to decode it. Well that took way too long. So what I needed was a java program to decode it!

Here it is.

Compile and Run:

Needless to say, this worked, however I still had one final question before I could complete the task and so I sent him the following sub-subliminal message:

0000000 30303030 30303020 32343363 32383230
0000020 20353736 38343137 34203237 35333230
0000040 35392036 66353537 3232300a 30303030
0000060 30323020 34313634 34343732 20343537
0000100 33353332 30203436 36313532 37342034
0000120 62366534 6636330a 30303030 30343020
0000140 34623635 35323366 20306130 30303030

Thats all for now!

Cameron

Got Java questions? Maybe my Java Board has the answers?

Enter your Email to join my Java List:
(highly recommended if you use these applets!)

Powered by: MessageBot.com
  • Java is a registered trademark of Sun Microsystems, Inc.


    Cameron Gregory - cameron@bloke.com