Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Playfair cipher
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == <!-- The images need to be shrunk by 20% to 50% to work at different screen sizes, using the image tag that specifies image size --> Using "playfair example" as the key (assuming that I and J are interchangeable), the table becomes (omitted letters in red): [[File:Playfair Cipher building grid omitted letters.png|frameless|upright=1.5]] The first step of encrypting the message "hide the gold in the tree stump" is to convert it to the pairs of letters "HI DE TH EG OL DI NT HE TR EX ES TU MP" (with the null "X" used to separate the repeated "E"s). Then: {| class="wikitable" |- | 1. The pair HI forms a rectangle, replace it with BM || [[File:Playfair Cipher 01 HI to BM.png|frameless|upright=1.5]] |- | 2. The pair DE is in a column, replace it with OD || [[File:Playfair Cipher 02 DE to OD.png|frameless|upright=1.5]] |- | 3. The pair TH forms a rectangle, replace it with ZB || [[File:Playfair Cipher 03 TH to ZB.png|frameless|upright=1.5]] |- | 4. The pair EG forms a rectangle, replace it with XD || [[File:Playfair Cipher 04 EG to XD.png|frameless|upright=1.5]] |- | 5. The pair OL forms a rectangle, replace it with NA || [[File:Playfair Cipher 05 OL to NA.png|frameless|upright=1.5]] |- | 6. The pair DI forms a rectangle, replace it with BE|| |- | 7. The pair NT forms a rectangle, replace it with KU || |- | 8. The pair HE forms a rectangle, replace it with DM || |- | 9. The pair TR forms a rectangle, replace it with UI || |- | 10. The pair EX (X inserted to split EE) is in a row, replace it with XM || [[File:Playfair Cipher 10 EX to XD.png|frameless|upright=1.5]] |- | 11. The pair ES forms a rectangle, replace it with MO || |- | 12. The pair TU is in a row, replace it with UV || |- | 13. The pair MP forms a rectangle, replace it with IF || |} Thus the message "hide the gold in the tree stump" becomes "BM OD ZB XD NA BE KU DM UI XM MO UV IF", which may be restructured as "BMODZ BXDNA BEKUD MUIXM MOUVI F" for ease of reading the cipher text.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)