Skip to content
Surf Wiki
Save to docs
general/cryptographic-attacks

From Surf Wiki (app.surf) — the open knowledge base

Contact analysis

Concept in cryptanalysis


Concept in cryptanalysis

In cryptanalysis, contact analysis is the study of the frequency with which certain symbols precede or follow other symbols. The method is used as an aid to breaking classical ciphers.

Contact analysis is based on the fact that, in any sample of any written language, certain symbols appear adjacent to other symbols with varying frequencies. Moreover, these frequencies are roughly the same for almost all samples of that language, even when the distribution of the symbols themselves differs significantly from normal. This is true regardless of whether the symbols being used are words or letters.

In some ciphers, these properties of the natural language plaintext are preserved in the ciphertext, and have the potential to be exploited in a ciphertext-only attack.

Although in a sense contact analysis can be considered a type of frequency analysis, most discussions of frequency analysis concern themselves with the simple probabilities of the symbols in the text: P(X_i=a) or P(X_i=a \cap X_{i+1}=b)

Contact analysis is based on the conditional probability that certain letters will precede or succeed other letters: P(X_i=b \mid X_{i-1}=a), or P(X_i=c \mid X_{i-2}=a \cap X_{i-1}=b), or even P(X_i \sub S \mid X_{i-1}\sub T \cap X_{i+1} \sub T), where S and T are subsets of the alphabet being used.

Where frequency analysis is based on first-order statistics, contact analysis is based on second or third-order statistics.

References

References

  1. Smith, Michael. (2001). "The Emperor's Codes: The Breaking of Japan's Secret Ciphers". Arcade Publishing.
  2. Ciesla, Robert. (2020). "Encryption for Organizations and Individuals".
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Contact analysis — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report