I have a text crypted with Cesar's Key Word encryption algorithm. It is a single-letter substitution algorithm which uses a key in the form of ( A, B ) where A is a word or phrase and B is a number. For example: if the key is ( "Hello world", 5 ), that means that the "table" of encryption looks like:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z <- plain text
V X Y Z H E L O W R D A B C F G I J K P Q R S T U <- crypted text
So the "Hello world" is written from the 5th letter on, and when the phrase is written (one letter one time only) then the alphabet is added to it (again, looking out not to have the same letter written twice).
I know that basic technique to decrypt this would be to take a crypted text and count the frequency of crypted letters in the text, and then "guess" which letter is which using frequency of letters in a plain text (depending on which language the original text was in). Now there are generally 26! Of possibilities to make this kind of encryption tables (a bit less, but it doesn't really matter), which is a too big number to go about solving it with brute force algorithms.
What can I do to decrypt this text? I got this homework, and statistics of frequency of letters is just messed up on purpose and it is very annoying to try solving the problem this way, because 6 most frequent letters are all messed up, so I get rubbish each time I try something, and there are 720 ways to mix those 6 letters. Any smarter way to go about this?
Thanks a lot,
Kresho