Al-Kindi and Letter Frequency in Classical Ciphers

Al-Kindi and Letter Frequency in Classical Ciphers

Muslim Post Editorial Desk@muslimpost

Trace al-Kindi’s Arabic treatise and use fictional counts to see what fixed substitution preserves and why frequency evidence depends on its sample.

Al-Kindi’s ninth-century Arabic treatise describes an early way to reason about a secret text by counting letters. If a writer replaces each letter with its own fixed sign, a frequently used letter still appears frequently under its new sign. The count gives a clue about the hidden writing. The strength of that clue depends on the text and the material used for comparison.

The cover is an AI-assisted illustration of a scholar’s workspace and manuscript materials.

Trace the work from its Arabic title to the printed edition

The text commonly called Risala fi istikhraj al-mu‘amma is a short work on recovering the meaning of concealed writing. The scholar Ya‘qub ibn Ishaq al-Kindi lived in the ninth century. İsmail Durmuş, in the TDV İslâm Ansiklopedisi, describes the work as the earliest surviving treatise on methods of concealing and recovering messages. The qualification matters. Surviving evidence allows scholars to describe the argument he set out, while earlier practices can be less fully recorded.

The Arab Academy of Damascus published the first volume of an Arabic study and edition in 1987. The academy’s journal records the work of Muhammad Marayati, Yahya Mir Alam and Muhammad Hassan al-Tayyan. This date belongs to a modern scholarly publication. It identifies where to look for an edited text and related studies.

The Bibliothèque nationale de France catalogs Al-Kindi’s Treatise on Cryptanalysis as a 204-page volume published in Riyadh in 2003 and listed as volume one of the Series on Arabic Origins of Cryptology. The UAE Federation Library describes the series as Arabic and English and lists the King Faisal Center for Research and Islamic Studies and King Abdulaziz City for Science and Technology as publishers. Use the guide to manuscript provenance and catalogues to see why a manuscript copy, an edited text and a catalogue record each answer different questions.

Place al-Kindi in the world of Abbasid scholarship

Historian of philosophy Peter Adamson describes al-Kindi’s work with a circle involved in translating Greek philosophy and science into Arabic. He places it in a broader movement supported by Abbasid patrons. That setting helps explain why al-Kindi worked across subjects and why a short study of writing could bring language and arithmetic together. It leaves the exact place and circumstances of the treatise’s composition open.

The account of scholarship and translation in Abbasid Baghdad explains the evidence for patronage and why different projects should be identified individually. The article on Hunayn ibn Ishaq gives a separate example of a translator working with texts, their wording and their transmission.

Durmuş also discusses the need for discreet written correspondence in some administrations. The history of the barid postal network gives context for the circulation of messages. That context helps explain the uses of secret writing. The treatise and its catalogues leave open whether an individual courier ever used the method.

See what a fixed replacement preserves

Imagine a writer uses one distinct sign for each letter and keeps the assignments fixed across one passage. Every time an original letter appears, its assigned sign appears once. The frequencies in that passage are preserved exactly, with the labels changed. An ordinary text supplies a different set of counts, which may resemble those of the hidden passage. The comparison is approximate because the two passages use different words and sentences.

For example, if a letter occurred 24 times in a passage of 120 letters, a fixed replacement would yield 24 occurrences of its new sign. That is 20 percent of the letters in this invented passage. It gives no information by itself about which letter was replaced. What makes the count interesting to a historian of statistics is the link between an observation and an inference about something unseen.

Rearranging letters is a separate way of obscuring writing. It can also preserve totals, while changing where the letters occur. Durmuş notes that al-Kindi drew a distinction between replacing signs and changing their positions. In a historical description, name the kind of change before explaining what a count would still represent.

Read a fictional count without treating it as a language table

Suppose a classroom example compares two made-up passages. In a passage of 120 symbols, sign A occurs 24 times, sign B occurs 18 times and sign C occurs 12 times. The other signs account for 66 positions. The respective shares are 20, 15 and 10 percent. In a shorter passage of 12 symbols, sign A occurs once, B occurs four times and C occurs twice. The remaining five positions contain other signs. B leads those three signs in the shorter passage.

These numbers were invented to illustrate a change in ranking. Suppose the shorter passage repeats a name. A sign used several times in that name could be prominent even if the corresponding letter is modestly represented in the longer passage. With only twelve positions, one additional occurrence is a large share of the whole. In the longer passage, one occurrence has a smaller effect on the percentage.

The three percentages in the short example are about 8.3, 33.3 and 16.7 percent. A change of one occurrence would shift a share by about 8.3 percentage points in that passage, compared with about 0.8 points in the longer passage. These differences follow from the sizes alone. To explain why B happens to lead, you would need more information about which words occur in the passage and how often the words repeat.

The example also shows why the total belongs beside the count. A count of four in twelve has a different weight from four in 120. In a teaching note, identify what was counted, give the denominator, and say whether the figures came from a text or were invented. The figures above describe a classroom comparison and supply no frequencies for historical Arabic.

Understand why language and other evidence matter

Lyle D. Broemeling’s study in The American Statistician considers how early Arab writers used the relative frequencies of letters and other information about a language. A text in Arabic calls for evidence about Arabic writing. The conventions used to transcribe it also affect what will be counted. A count of words, a count of written letters and a count of marks in an edition are three different measurements.

Durmuş describes al-Kindi’s interest in letters that are found together or tend to be kept apart, and in conventional openings to letters or speeches. Such observations matter because language has structure at more than one level. A repeated symbol by itself gives a frequency. Repeated combinations and a known type of document can provide independent reasons to take or doubt a proposed reading.

An opening formula might recur through a collection of formal letters, while a poem may put unusual weight on its rhyme or wording. Study the kind of text before borrowing a comparison sample. Even samples in the same language can reflect different writing habits.

Keep sample and transcription choices with the results

If you are reading a historical example, first ask whether the count includes spaces, punctuation or marks added by a modern editor. A transcription may standardise spellings or distinguish characters another edition groups together. For a classroom table, use one stated counting convention throughout. If you change that convention, keep the old and new totals separately and explain the reason.

Suppose one classroom transcript silently omits an unreadable place that occupies a letter position, while another uses a placeholder. The first table has fewer counted positions. The second can keep an explicit unknown category. If you compare the tables without that note, an apparent difference in letter shares could reflect editorial treatment of the gap. To discuss a published historical example, identify the edition and say how it indicated uncertain or supplied readings.

Sample size and representativeness are separate issues. A long collection of repeated headings can exaggerate a pattern, while a short passage can vary widely by chance. When two letter counts sit close together, their order can change with only a few additional examples. Report a ranking with its raw counts so a reader can see whether first and second place are separated by one occurrence or by many.

Read the claim in the source before repeating it

When citing al-Kindi, separate the composition of the work in the ninth century from the surviving manuscript evidence and the twentieth- and twenty-first-century scholarship that brings readers to it. Ibrahim A. Al-Kadi’s historical research discusses manuscripts by al-Kindi and later Arabic authors. The 1987 Arabic publication and the 2003 bilingual volume give distinct places to start. Cite the edition and page you actually used when quoting or checking a term.

A catalogue record can identify the form, publisher and year of the book in its collection. An editor may also explain which witnesses to the text were compared. A historian’s argument rests on how those sources are interpreted. Giving the reader the particular record or edition preserves that distinction and avoids turning the publication date of a volume into a date for the manuscript.

For a short account, a well-supported statement is that al-Kindi’s surviving treatise describes a method of reasoning from letter frequencies and other features of language. The enduring point is precise. Systematic substitution can preserve measurable structure in a text, and interpreting that structure calls for evidence about both the sample and the language.

Sources