Thursday, March 29, 2007

Java: Cipher

After the Password of the Day program was created for work, I expanded upon the concept to create a cipher generator/translator. This program would take as input either regular text or already coded text and after choosing a cipher, either decode or code the given text.

The idea was to have the ability to send and receive coded messages, either by email, ingame message system or on bulletin boards without anyone knowing what is being said. Originally this was intended to be used with the Star Strike online game I was playing at the time, however that game died out before the program could be put into use.

All in all, the program is fairly simply. It has four sets of algorithms that can be used to alter given text on a character for character basis. I didn't try to get too tricky, so spaces, numbers and punctuation remain constant between the different algorithms and only letters change. From the Password program one of the text boxes was removed and the drop down menu added for choosing the different algorithms. Otherwise the core of the program is identical. While it definitely isn't up to real world usage, for gaming it would be sufficient to keep any curious eyes and ears ignorant to a message's content.

No comments: