A HOME FOR ANYONE ADDICTED TO ARABIC. 
JOIN ARABIC FOR NERDS➕

Support this site with a membership: For only $2.99 a month or $29.99 a year, you can have a true AD-FREE experience. You also get a 15% discount in my shop and a monthly premium newsletter. Find out more here.

SUPPORT THIS SITE

Passion doesn't need money. Unfortunately, my web provider does. Your contribution ensures that this site will grow and grow.

Buy Me A Coffee

PayPal Donate
amazon wishlist button
Free monthly newsletter

Subscribe to my FREE newsletter and get 10% off in my store!

cropped cypher numbers

One of the first cryptologists was an Arab – did you know?

One of the greatest Arab scholars, al-Kindi (الْكِنْدِي), was one of the pioneers of cryptology. How did he manage to decrypt messages?

Last updated: 1 year ago

In recently was in Poznań, Poland, I learned that one of the greatest Arab scholars, al-Kindi (الْكِنْدِي), was one of the pioneers of cryptology. How did he manage to decrypt messages?

The museum in Poznan

Recently I had visited the monument of Marian Rejewski, Henryk Zygalski and Jerzy Różycki.

IMG 20180617 155037
Monument in Poland

They were Polish mathematicians and cryptologists who cracked the secret code of the Nazi cipher machine Enigma which is considered as one of the most sophisticated cipher machines in history

Based on the Polish knowledge, the British scientist Alan Turing managed to build a huge computer that would finally crack the cipher.

I personally found it very interesting that in the small Polish exhibition, a genius of the 9th century was also mentioned: al-Kindī>/mark> (الْكِنْدِي).

His full name was Abū Yūsuf Ya‘qūb bin Ishāq (أَبُو يَعْقُوب بن إِسْحاق الْكِنْدِي), known as the philosopher of the Arabsfailasūf al-‘Arab (فَيْلَسُوف الْعَرَب).

What do we know about al-Kindi?

al-Kindi

a-Kindi was of South Arabian descent, which his name already indicates: Kinda (كِنْدة) was the name of an ancient tribal kingdom in the Najd (present-day Saudi-Arabia).

Al-Kindī was born probably at the beginning of the ninth century (ca. 800/~185 AH) in Kūfa, where his father was  a governor.

He was educated in and Baghdad, then the great centers of learning.

Why did the exhibition mention al-Kindi?

Answer: Because he set a milestone in the field of cryptology: the frequency analysis.

For almost a thousand years, from 500 to 1400, the knowledge of cryptology of Western civilization did not really progress. People used very basic systems which were mainly based on steganography.

Steganography, in simple words, denotes that a secret message is being sent by concealing the contents of the message. For example, in ancient times, people shaved a messenger's head, wrote a message on his head and waited until hair had covered it again, so that he could deliver the secret, hidden message.

Then, in the 9th century, there was a breakthrough: The Arabs understood the importance of cryptoanalysis. Cryptanalysis is the science of unscrambling a message without the knowledge of the key and is based on finding weaknesses in encryption methods in order to break them.

Why did al-Kindi work on cryptoanalysis?

The Arabs and Persians, back then, were among the best mathematics and linguistics at that time. This was mainly because they tried hard to analyze every detail of the Qur'an. How did they do that? They did it step by step.

  1. First, Muslim theologians tried to extract a chronological order of the revelations.
  2. They did that by counting the frequency of specific words in every single verse because some words arose earlier in comparison to other words.
  3. Then, they analyzed the verses phonetically and at the level of single letters.
  4. They realized that some letters occur more often than others
  5. They realized that some letters are not found next to each other, and that some like to be accompanied by certain letters.
  6. They discovered the rarest letters in Arabic and the most common letters: the letters (ا) and Lām (ل) are the most common in Arabic, whereas the letter Jīm  (ج) appears only a tenth as frequency.

When they put all that together, they made the first great breakthrough in cryptoanalysis: the frequency analysis.

How can Kindi's ideas be used to encrypt messages?

If you start counting the frequency of letters and arrange them in that order, you suddenly have a cipher-tool to decode messages.

Al-Kindī was probably the first scholar who wrote about that. His book Risāla fī Istikhrāj al-Kutub al-Mu'ammāh (رِسالة في اِسْتِخْراجِ  الْكُتُبِ المُعَمّاَةcontains the oldest known description of cryptanalysis by frequency analysis. The title literally means On Extracting Obscured Correspondence. Nowadays, we could translate it as On Decrypting Encrypted Correspondence.

Al kindi cryptographic

In his writing, we find many interesting things about statistics, phonetics and Arabic syntax. In two paragraphs, he eventually describes the system of cryptanalysis.

Unfortunately, I have not found the original Arabic text – I can only rely on the translation given in the great book The Code Book: Science of Secrecy from Ancient Egypt to Quantum Cryptography by Simon Singh (page 17):

“One way to solve an encrypted message, if we know its language, is to find a different plaintext of the same language long enough to fill one sheet or so, and then we count the occurrences of each letter. We call the most frequently occurring letter the FIRST, the next most occurring letter the SECOND the following most occurring letter the THIRD, and so on, until we account for all the different letters in the plaintext sample. Then we look at the cipher text we want to solve, and we also classify its symbols. We find the most occurring and change it to the form of the FIRST letter of the plaintext sample, the next most common symbol is changed to the form of the SECOND letter, and the following most common symbol is changed to the form of the THIRD letter, and so on, until we account for all symbols of the cryptogram we want to solve.”

al-Kindi

In short: Al-Kindī was the first to note that encrypted messages could be cracked by using “cribs”. A “crib” is a word or a set of words that is highly suspected to be in the message somewhere. For example, the Arabic definite article al (ال).

What happened to the Polish mathematicians?

Historians say that cracking the Enigma shortened World War II dramatically, at least by two years. So, why have most people outside Poland never heard about the Polish geniuses?

IMG 20180617 155151
picture credit: Gerald drissner

Despite their help, history in many countries has largely ignored their role. The same happened to many Arab, Persian and Berber scientists who never got the fame they would have deserved in my opinion.

The Hollywood movie The Imitation Game which tells the story of how the British mathematician Alan Turing cracked the Enigma barely mentioned the Poles. In 2014, the NSA (National Security Agency) honored Marian Rejewski by inducting him into the NSA Cryptologic Hall of Honour.

Arabic is tricky. Have you ever thought if there is a one-letter-word in Arabic?

There is also more on Arabic and Islamic history on Arabic for Nerds:

Pictures: (c) Gerald Drißner; wikipedia. Image by PublicDomainPictures from Pixabay

Subscribe
Notify of
guest
4 Comments
Inline Feedbacks
View all comments
Marcus
Marcus
1 year ago

Should you visit the same place now, instead of the the small and token exhibition you mention you would find a modern Enigma Cipher Center (https://csenigma.pl), where the coverage of Al-Kindi’s work is even more extensive.

Mohammed Al-Suwaiyel
Mohammed Al-Suwaiyel
1 year ago

Hello! You wrote: “Unfortunately, I have not found the original Arabic text – I can only rely on the translation ….”. I am part of a team that translated and reviewed al-Kindi’s book and 14 other very old Arabic manuscripts on Cryptology. I will be happy to send you these manuscripts and their English translation. Pease get in touch.

Pierrick Jaouen
Pierrick Jaouen
2 years ago

Enthralling reading!

Previous Article
Allah

How do you pronounce Allah correctly?

Next Article
best arabic book stores

What are the best websites and shops to buy Arabic books?

Related Posts

Subscribe to our FREE newsletter

Don't miss any updates and get your regular dose of Arabic.