Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexanderwe/playfair_cipher

Just a small simple playfair java program.
https://github.com/alexanderwe/playfair_cipher

Last synced: 23 days ago
JSON representation

Just a small simple playfair java program.

Awesome Lists containing this project

README

        

# Playfair_Cipher
Just a small simple playfair java program.

# Run the jar-File
Run the jar-File in your command line. Navigate to the directory where the file is stored.
Type in command line to execute the program: java -jar playfairchiffre.jar "yourkey" "your text to encode" then press "Enter"

Now your text will be encoded and decoded. Additionally you will see the playfair-matrix with your given key to analyse how the playfair-chifre work.

#Sample output
   0 1 2 3 4

0 S U R P I

1 E A B C D

2 F G H K L

3 M N O Q T

4 V W X Y Z

________________

____________Enccode_____________

Original text: ILOVEYOU

Prepared text: ILOVEYOU

Bigrams: IL OV EY OU

I+L

I found at: Row'0' and Column'4'

L found at: Row'2' and Column'4'

O+V

O found at: Row'3' and Column'2'

V found at: Row'4' and Column'0'

E+Y

E found at: Row'1' and Column'0'

Y found at: Row'4' and Column'3'

O+U

U found at: Row'0' and Column'1'

O found at: Row'3' and Column'2'

____________Decode_____________

Original text: DTMXCVNR

Prepared text: DTMXCVNR

Bigrams: DT MX CV NR

D+T

D found at: Row'1' and Column'4'

T found at: Row'3' and Column'4'

M+X
M found at: Row'3' and Column'0'

X found at: Row'4' and Column'2'

C+V

C found at: Row'1' and Column'3'

V found at: Row'4' and Column'0'

N+R

R found at: Row'0' and Column'2'

N found at: Row'3' and Column'1'





____________Outputs_____________



Encoded text: DTMXCVNR

Decoded text: ILOVEYOU

Hope you enjoy the program.