Maison de la sagesse
Al-Kindi (801–873) was the first to use statistics to decipher encrypted messages and developed the first code breaking algorithm in the House of Wisdom in Baghdad, based on frequency analysis. He wrote a book entitled "Manuscript on Deciphering Cryptographic Messages", containing detailed discussions on statistics.