SageCell Here is a SageCell to help break classical ciphers. The code will first find the index of coincidence on the text and run a G-test to compare the value distribution of the characters to a standard distribution of characters in english plaintext.