Challenge : apply these methods to crack simple codes
Many texts are crypted using simple methods like https://www.sololearn.com/Discuss/981018/?ref=app Make a program that runs the following attacks on a crypted text 1- Use letters frequency to try to "recognize" letters (see hereunder frequencies for the 1st letter of english words and all the letters) 2- Display the first tens of characters of the text using all the caesar possibilities 3- XOR each ascii code with a constant value for different values of XOR masks giving enough letters or digits as % of the total size of the text 4-any other additionnal method firstchar=[0.11682,0.04434,0.05238,0.03174,0.02799,0.04027,0.01642,0.042,0.07294,0.00511,0.00456,0.02415,0.03826,0.02284,0.07631,0.04319,0.00222,0.02826,0.06686,0.15978,0.01183,0.00824,0.05497,0.00045,0.00763,0.00045] allchar=[0.08167,0.01492,0.02782,0.04253,0.12702,0.02228,0.02015,0.06094,0.06966,0.00153,0.00772,0.04025,0.02406,0.06749,0.07507,0.01929,0.00095,0.05987,0.06327,0.09056,0.02758,0.00978,0.0236,0.0015,0.01974,0.00074]