Tuesday, May 26, 2015

Final Project - Secret Messager

Download the application here.

This program stems from the Braille translator I made a month or so ago, and utilizes a similar kind of array system to sort character information.

Basically, to "encode" a user's input, the encoder class will create a randomized alphabet (including numbers and symbols), switch each character in the user input with its randomized character, put that into the output, and then stick the full randomized alphabet at the end of the output for the decoder to use. Since this is randomized each time, it would be relatively difficult to crack under normal circumstances if you don't know the format of the original non-randomized alphabet array.

To "decode" the encoded message, the decoder splits the encoded message into the actual user's input and the randomized alphabet that was stuck at the end (it is able to do this because the length of the randomized alphabet doesn't change). It then basically does what the encoder did, but in reverse - flip every mixed up character with the original alphabet, essentially unscrambling the message.

Here's the program in action:





The decoded message, as of v3.1, will now also copy to the clipboard.