Cryptanalysis of classical ciphers