Your task is to design automated solvers for the shift and Vigenere ciphers. You must use C as the under- lying programming language, in order to get prepared for the following labs. Each solver should be completely automated, i.e., upon reading a text ,l.e. containing the target ciphertext (given as command-line argument), it should print the encryption key and the decrypted plaintext without any user interaction. Test your code on the following ciphertexts, and answer these questions: 1. What is the key of the cipher?
Your task is to design automated solvers for the shift and Vigenere ciphers. You must use C as the under- lying programming language, in order to get prepared for the following labs. Each solver should be completely automated, i.e., upon reading a text ,l.e. containing the target ciphertext (given as command-line argument), it should print the encryption key and the decrypted plaintext without any user interaction. Test your code on the following ciphertexts, and answer these questions:
1. What is the key of the cipher?
2. What is the decrypted plaintext?
Shift Cipher - Decrypt the following ciphertext: ODKBFAXASKBDQEQZFEMPURRUOGXFKZAFRAGZPUZZADYMXMOMPQYUOPUEOUBXUZQEFTQZQQPRADFTQBDABQDUZFQDMOFUAZARODKBFASDMBTKMZPODKBFMZMXKEUEFTUEMDUEQEAGFARFTQRMOFFTMFUZFTQMNEQZOQARDQMXOAYYGZUOMFUAZEDQCGUDQYQZFEUFUEQMEKFABDABAEQMEKEFQYFTMFMBBQMDEGZNDQMWMNXQYMZKMOMPQYUOPQEUSZEMDQEAOAYBXQJFTMFFTQIAGXPNQODKBFMZMXKEFPAQEZAFWZAIITQDQFAEFMDFQJBAEUZSRXMIEUZFTQEQPQEUSZEUERMDTMDPQDFTMZPQEUSZUZSFTQYUZFTQRUDEFBXMOQFTQDQEGXFUEFTMFFTQOAYBQFUFUHQBDAOQEEITUOTUEAZQEFDAZSYAFUHMFUAZUZMOMPQYUODQEQMDOTOMZZAFFMWQTAXP
Vigenere Cipher - Decrypt the following ciphertext: YYCCIIDCGRBBVVPTLHKEAGRDVFEGTDJPUPLXWJRTFSTXGCZWPKFTEOVVQTOSPKGTLOPUCPKZAVGVAHKVQIASPRRXHBCCQTVITZRNTUGEANTAGIGRTGQWDXVWCCAGRDVFEGTDJZADKUCEKPWSUVTTKONRRIXARKQIHEWRQWBHVYCUBFUKUPLONVRIXFHIMBTZQEEIBAGEQPXARCMNXSCCJTZSFCWPOCYVBAROPUYEIOTVLIEMCTRXGUQEFXLCYERWXZGKRTKKCJQTGHVFRWXWGVCPGRYRPCXRVYYIMVGGSQEWERRXHBQWAGRDVFEGTDJZABTHGIGPEKCJYKBCNRRXHBQWRWXWPKCGGOVZMCTZVIYUYWEZLPKAUICVNZCKGDGGVYGHOWGNNDBBVKSGGSFFSIGCVVTTGHQSCHNDRFPIXRDPRWXFGXSATHKFLHMVGDQTEJGJUWBQJTMCMOKECSTBGONABQKKCMXARKGDGTQINJUZKJFTWACKCGBONSSIZOXVZDMV
Step by step
Solved in 3 steps