Cryptanalysis, frequency analysis and ciphers

February 17, 2022 by Alison Tunley

Get a Free Quote

Our Accreditations

  • ATA Logo
  • ATC Logo
  • BSI 9001 Logo
  • BSI 9001 Logo
  • DIN EN 15038 Logo

Recent Updates

Buckets and spoons: an etymological tour of death metaphors

The need to translate English into English is more common than you might imagine, where phrases of English are deployed in a foreign language and have taken on an alternative meaning that isn’t appropriate in actual English text. Read More

This blog recently examined different strategies for solving Codeword puzzles, including frequency analysis or letter counting. This involves using an understanding of the frequency of occurrence and distribution of different letters to decipher encrypted text. Frequency analysis is a specific type of cryptanalysis, which more broadly means the analysis of information systems to understand the content of encrypted text even if the cryptographic key is unknown. The link between cryptography and puzzle solving is perhaps best exemplified by the recruitment test used at Bletchley Park during the Second World War, where applicants were selected in part based on their ability to solve the Telegraph crossword in under 12 minutes.

Cryptanalysis, frequency analysis and ciphers

Frequency analysis is potentially the very oldest form of cryptanalysis, a methodology outlined by the 9th century Islamic philosopher Al-Kindi in his Manuscript on Deciphering Cryptographic Messages. In natural languages, some letters and letter combinations occur more frequently than others. The most basic encryption technique, where one letter is simply replaced by another, fails to mask these frequency patterns, making the ciphertext relatively easy to decode provided it is long enough to contain a reasonably representative text.

The inventor Samuel Morse used a form of frequency analysis in the development of his coded messaging system, realising that it made sense to allocate the shortest codes to the most frequently occurring letters. To work out his letter ranking, Morse is said to have consulted his local newspaper printer, where individual letters (type) were assembled into blocks, which were then covered in ink to produce the printed newspaper. The printers needed more of certain letters to create each page, so Morse is said to have simply counted the number of pieces of type for each letter.

For a more sophisticated approach to encryption that is resistant to straightforward frequency analysis, polyalphabetic ciphers make use of multiple substitution alphabets to produce a more complex mapping between source text and encrypted text. The Enigma machines used by Nazi Germany during World War Two are an example of exactly this kind of encryption system. These devices used electro-mechanical rotors to generate the ciphers. Although Polish codebreakers had worked out how to read Enigma messages before the war, the Germans successfully protected subsequent texts by changing the cipher on a daily basis. Cracking this code before it changed was the challenge facing the team at Bletchley Park, whose cryptanalysis work was dramatized in the 2014 film The Imitation Game.

The advent of modern computer software, which can carry out frequency analysis on a massive scale in a matter of seconds, has rendered classical ciphers such as substitution ciphers ineffective. The latest cryptographic systems use encryption algorithms to increase resistance to cryptanalysis, taking encryption methodologies beyond the understanding of mere linguists and into the realm of mathematics and computer science.

For those of us whose numerical pattern matching skills don’t go much further than the 26 letters of the alphabet, there is a fun challenge at 101.computing.net, where you can deploy your frequency analysis skills to decrypt the text provided. Use the frequency distribution depicted to slot in likely letter substitutes one by one to work out the solution. And for the new Wordle obsessives among you, frequency analysis could very well underpin your first guess and guide your subsequent strategy, but that’s a discussion for a whole other blog!

Share This Post

Comments

Add Comment








Andreea Mohan

Taylor Wessing LLP

We are very pleased with the services provided by Rosetta Translations. They always send very prompt responses, transparent prices and deliver their work product at the highest standards.

More Testimonials

Jackie Brook, Sr Product Manager

American Express

Thank you very much for your prompt and efficient service.

More Testimonials

Conor McLarnon

Maximus Crushing and Screening

I have translated multiple projects with Rosetta now and I cannot emphasise how great the service they provide is; quality, turnaround time and pricing is the best I have found yet. The qualities of translations we receive are of the highest standard and communication from the start of a project to the end is consistent.

For a company looking into translations, I would highly recommend Rosetta as first pick, as the support and service they provide is first class.

More Testimonials

Get a Free Quote

© 2024 All Rights Reserved
Rosetta Translation, 133 Whitechapel High St, London E1 7QA · 0207 248 2905