Home > College Algebra > Ciphers > Three Square Cipher example

35. Three Square Cipher example ( Enter your problem )
  1. Examples
Other related methods
  1. A1Z26 Cipher (Letter to number Cipher)
  2. ADFGVX Cipher
  3. ADFGX Cipher
  4. Affine Cipher
  5. Alberti Cipher
  6. Atbash Cipher
  7. Autokey Cipher / Autoclave Cipher
  8. Bacon Cipher
  9. Beaufort Cipher
  10. Bifid Cipher
  11. Caesar Cipher / Additive cipher / Shift Cipher
  12. Chaocipher
  13. Columnar transposition Cipher
  14. Double Transposition Cipher
  15. Enigma machine Cipher
  16. Four Square Cipher
  17. Gronsfeld Cipher
  18. Hill Cipher
  19. Kamasutra Cipher / Vatsyayana Cipher
  20. Morse Code Translator
  21. Multiplicative Cipher / Decimation Cipher
  22. Nihilist Cipher
  23. Playfair Cipher
  24. Polybius Square Cipher
  25. Porta Cipher
  26. Rail fence Cipher
  27. ROT-5 Cipher
  28. ROT-13 Cipher
  29. ROT-18 Cipher
  30. ROT-47 Cipher
  31. ROT-N Cipher
  32. Running Key Cipher
  33. Substitution Cipher
  34. Tap code Cipher / Knock code Cipher
  35. Three Square Cipher
  36. Trifid Cipher
  37. Trithemius Cipher
  38. Two-square Cipher
  39. Vigenere Cipher

34. Tap code Cipher / Knock code Cipher
(Previous method)
36. Trifid Cipher
(Next method)

1. Examples





1. Three Square Cipher encoder

Text : ABCD efghi
Key1 : one
Key2 : two
Key3 : three
Padding Character : z


Solution:
The Three Square Cipher is a digraph substitution cipher, which uses three grids to enctypt the message

Key1 = oneabcdfghiklmpqrstuvwxyz

Key2 = twoabcdefghiklmnpqrsuvxyz

Key3 = threabcdfgiklmnopqsuvwxyz

Grid-1
12345
1oneab
2cdfgh
3iklmp
4qrstu
5vwxyz

Grid-2
12345
1twoab
2cdefg
3hiklm
4npqrs
5uvxyz

Grid-3
12345
1threa
2bcdfg
3iklmn
4opqsu
5vwxyz

Plaintext = abcdefghi
Split into pairs of letters (digraphs)
Pairs : ab cd ef gh i

Pad at end, if necessary
If one letter is left at the end, then pad to make it pair
Pairs : ab cd ef gh iz

Encryption :
ab `=` a(G1,r1,c4), b(G2,r1,c5) `=>` a(G1,r1,c4), a(G3,r1,c5), t(G2,r1,c1) `=` aat

cd `=` c(G1,r2,c1), d(G2,r2,c2) `=>` o(G1,r1,c1), c(G3,r2,c2), c(G2,r2,c1) `=` occ

ef `=` e(G1,r1,c3), f(G2,r2,c4) `=>` e(G1,r1,c3), e(G3,r1,c4), c(G2,r2,c1) `=` eec

gh `=` g(G1,r2,c4), h(G2,r3,c1) `=>` a(G1,r1,c4), b(G3,r2,c1), h(G2,r3,c1) `=` abh

iz `=` i(G1,r3,c1), z(G2,r5,c5) `=>` o(G1,r1,c1), n(G3,r3,c5), u(G2,r5,c1) `=` onu

Plaintext : abcdefghiz
Ciphertext : aatocceecabhonu

2. Three Square Cipher encoder

Text : hello world
Key1 : one
Key2 : two
Key3 : three
Padding Character : z


Solution:
The Three Square Cipher is a digraph substitution cipher, which uses three grids to enctypt the message

Key1 = oneabcdfghiklmpqrstuvwxyz

Key2 = twoabcdefghiklmnpqrsuvxyz

Key3 = threabcdfgiklmnopqsuvwxyz

Grid-1
12345
1oneab
2cdfgh
3iklmp
4qrstu
5vwxyz

Grid-2
12345
1twoab
2cdefg
3hiklm
4npqrs
5uvxyz

Grid-3
12345
1threa
2bcdfg
3iklmn
4opqsu
5vwxyz

Plaintext = helloworld
Split into pairs of letters (digraphs)
Pairs : he ll ow or ld

Encryption :
he `=` h(G1,r2,c5), e(G2,r2,c3) `=>` b(G1,r1,c5), d(G3,r2,c3), c(G2,r2,c1) `=` bdc

ll `=` l(G1,r3,c3), l(G2,r3,c4) `=>` e(G1,r1,c3), m(G3,r3,c4), h(G2,r3,c1) `=` emh

ow `=` o(G1,r1,c1), w(G2,r1,c2) `=>` o(G1,r1,c1), h(G3,r1,c2), t(G2,r1,c1) `=` oht

or `=` o(G1,r1,c1), r(G2,r4,c4) `=>` o(G1,r1,c1), e(G3,r1,c4), n(G2,r4,c1) `=` oen

ld `=` l(G1,r3,c3), d(G2,r2,c2) `=>` e(G1,r1,c3), k(G3,r3,c2), c(G2,r2,c1) `=` ekc

Plaintext : helloworld
Ciphertext : bdcemhohtoenekc





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



34. Tap code Cipher / Knock code Cipher
(Previous method)
36. Trifid Cipher
(Next method)





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.