encyclopegia.org

Two-square cipher

The Two-square cipher, also called double Playfair, is a manual symmetric encryption technique. It was developed to ease the cumbersome nature of the large encryption/decryption matrix used in the four-square cipher while still being slightly stronger than the single-square Playfair cipher. The technique encrypts pairs of letters (digraphs), and thus falls into a category of ciphers known as polygraphic substitution ciphers. This adds significant strength to the encryption when compared with monographic substitution ciphers, which operate on single characters. The use of digraphs makes the two-square technique less susceptible to frequency analysis attacks, as the analysis must be done on 676 possible digraphs rather than just 26 for monographic substitution. The frequency analysis of digraphs is possible, but considerably more difficult, and it generally requires a much larger ciphertext in order to be useful.

The Two-square cipher, also called double Playfair, is a manual symmetric encryption technique. It was developed to ease the cumbersome nature of the large encryption/decryption matrix used in the four-square cipher while still being slightly stronger than the single-square Playfair cipher. The technique encrypts pairs of letters (digraphs), and thus falls into a category of ciphers known as polygraphic substitution ciphers. This adds significant strength to the encryption when compared with monographic substitution ciphers, which operate on single characters. The use of digraphs makes the two-square technique less susceptible to frequency analysis attacks, as the analysis must be done on 676 possible digraphs rather than just 26 for monographic substitution. The frequency analysis of digraphs is possible, but considerably more difficult, and it generally requires a much larger ciphertext in order to be useful. L - - D - - - - - - - - - - - - - - - -   - - - - - - - - - - - - - - - L - - P - - - - - - The rectangle rule used to encrypt and decrypt can be seen clearly in this diagram. The method for decrypting is identical to the method for encryption. Just like Playfair (and unlike four-square), there are special circumstances when the two letters in a digraph are in the same column for vertical two-square or in the same row for horizontal two-square. For vertical two-square, a plaintext digraph that ends up with both characters in the same column gives the same digraph in the ciphertext. For horizontal two-square, a plaintext digraph with both characters in the same row gives (by convention) that digraph with the characters reversed in the ciphertext. In cryptography this is referred to as a transparency. (The horizontal version is sometimes called a reverse transparency.) Notice in the above example how the digraphs "HE" and "AN" mapped to themselves. A weakness of two-square is that about 20% of digraphs will be transparencies. E X A M P L B C D F G H I J K N O R S T U V W Y Z   K E Y W O R D A B C F G H I J L M N P S T U V X Z ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Two-square cipher." encyclopegia.org, 2024, https://encyclopegia.org/wiki/two-square-cipher. Accessed 24 November 2026.

Chicago

"Two-square cipher." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/two-square-cipher.

APA

encyclopegia.org. (2024). Two-square cipher. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/two-square-cipher

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Tahrir Square

stub · references available

fast inverse square root

stub · references available

Fen Square-spot

stub · references available

EFL League Two

stub · references available

A Nightingale Sang in Berkeley Square

stub · references available

The Two Noble Kinsmen

stub · references available

Playhouse on the Square

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1259943806 · 0.5 · snapshot enwiki-001259943806

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.