Internationally Known Author and Cryptoanalyst Simon Singh in his latest Newyork Times best seller - The Code Book - explains this in detail
It says the following ....However, in addition to employing ciphers, the Arab scholars were also capable of destroying ciphers. They in fact invented cryptanalysis....