Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alexanderwe/playfair_cipher
- Owner: alexanderwe
- Created: 2015-06-19T12:26:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-11T13:28:52.000Z (over 9 years ago)
- Last Synced: 2023-02-27T12:37:25.139Z (over 1 year ago)
- Language: Java
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 40 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: ILOVEYOUHope you enjoy the program.