Hi, I'm Shane Killen. This is an IT technical blog about configs and topics related to the Network Engineer working with Cisco, Brocade, Check Point, Palo Alto, etc. I hope this blog serves you well. -- May The Lord bless you and keep you. May He shine His face upon you, and bring you peace.
Today I have another special guest post. Babak Hoseini has been happy to write about encryption. He has written a cool little source code that will do some encryption for you. Thank you Babak for writing a guest post for me. As always, I appreciate your input. --Shane Killen
Mono-alphabetic in Java -- by Babak Hoseini A mono-alphabetic cipher is a simple
substitution cipher wherein each letter of the plaintext is replaced by another
letter in the ciphertext. An example of a mono-alphabetic cipher key follows:
Plain : A B C D E F G H I J K L M N O P Q R S T U V
W X Y Z
: z y x w v u t s r q p o n m l k j i h g f e d c b a
This key means that any 'M' in the plaintext will be
replaced by a 'n' in the ciphertext, any 'P' in the plaintext will be replaced
by a 'k' in the ciphertext, and so on.
For instance, plaintext is : “meet
me at the party” and after
encrypt you get “nvvg1nv1zg1gsv1kzigb”
I wrote the program below in Java that will encrypt plaintext to ciphertext: