Cracking Ciphers Through Mathematics