Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The ciphertext below was encrypted using a substitution cipher. In your favorite language (in C++ or Python) decrypt the ciphertext without knowledge of the key
The ciphertext below was encrypted using a substitution cipher. In your favorite language (in C++ or Python) decrypt the ciphertext without knowledge of the key using frequency analysis Irvmnir bpr sumbwyr jx bpr lmiw yjeryrkbi jx qmbm wi bpr xjvni mkd ymibrut jx irhx wi bpr riirkvr jx ymbinlmtmipw utn qmumbr dj w ipmhh but bj rhnvwdmbr bpr yjeryrkbi jx bpr ambm mvvjudwko bj yt wkbrusur bmbwjk lmird jk xjubt trmui jx ibndt wb wi kjb mk rmit bmiq bj rashmwk rmvp yjeryrkb mkd wbi i wokwxwvmkvr mkd ijyr ynib urymwk nkrashmwkrd bj ower m vjyshrbr rashmkmbwjk jkr cjnhd pmer bj ir fnmhwxwrd mkd wkiswurd bj invp mk rabrkb bpmb pr vind urmvp bpr ibmbr jx khopbrkrd yokd vmsmehr jx urvjokwgwko ijnkdhrii ijnkd mkd ipmsrhrii ipmsr w dj kjb drry ytirhx bpr xwkmh mnbpjuwbt lnb yt rasruwrkur cwbp qmbm pmi hrxb kj djnlb bpmb bpr xjhhj cwko wi bpr sujsru msshwvmbwjk mkd wkbrusur bmbwjk w jxxru yt bprjuwri wk bpr pjsr bpmb bpr riirkvr jx jqwkmcmk qmumor Cohh urymek wkbmvb a) Frequency analysis: write a program in C++ or python compute the relative frequency of all letters A..Z in the ciphertext given above. b) In order to decrypt the ciphertext look at the table 1.1 below, "Frequency" column and substitute the letters with more closer number which you obtained in part a. Note that the text is relatively short and that the letter frequencies in it might not perfectly align with that of general English language from the table. Try to substitute letters represented its letter frequencies and then try to read the text you obtained and make changes. Please write detail report what you did in each step. Table 1.1 Relative letter frequencies of the English language Letter Frequency Letter Frequency A 0.0817 0.0675 B 0.0150 0.0751 C 0.0278 0.0193 D 0.0425 0.0010 e 0.1270 0.0599 F 0.0223 0.0633 G 0.0202 0.0206 H 0.0609 0.0276 I 0.0697 0.0098 J 0.0015 0.0236 K 0.0077 0.0015 L 0.0403 0.0197 M 0.0241 0.0007 N O P Q R s T U v w X Y Z The ciphertext below was encrypted using a substitution cipher. In your favorite language (in C++ or Python) decrypt the ciphertext without knowledge of the key using frequency analysis Irvmnir bpr sumbwyr jx bpr lmiw yjeryrkbi jx qmbm wi bpr xjvni mkd ymibrut jx irhx wi bpr riirkvr jx ymbinlmtmipw utn qmumbr dj w ipmhh but bj rhnvwdmbr bpr yjeryrkbi jx bpr ambm mvvjudwko bj yt wkbrusur bmbwjk lmird jk xjubt trmui jx ibndt wb wi kjb mk rmit bmiq bj rashmwk rmvp yjeryrkb mkd wbi i wokwxwvmkvr mkd ijyr ynib urymwk nkrashmwkrd bj ower m vjyshrbr rashmkmbwjk jkr cjnhd pmer bj ir fnmhwxwrd mkd wkiswurd bj invp mk rabrkb bpmb pr vind urmvp bpr ibmbr jx khopbrkrd yokd vmsmehr jx urvjokwgwko ijnkdhrii ijnkd mkd ipmsrhrii ipmsr w dj kjb drry ytirhx bpr xwkmh mnbpjuwbt lnb yt rasruwrkur cwbp qmbm pmi hrxb kj djnlb bpmb bpr xjhhj cwko wi bpr sujsru msshwvmbwjk mkd wkbrusur bmbwjk w jxxru yt bprjuwri wk bpr pjsr bpmb bpr riirkvr jx jqwkmcmk qmumor Cohh urymek wkbmvb a) Frequency analysis: write a program in C++ or python compute the relative frequency of all letters A..Z in the ciphertext given above. b) In order to decrypt the ciphertext look at the table 1.1 below, "Frequency" column and substitute the letters with more closer number which you obtained in part a. Note that the text is relatively short and that the letter frequencies in it might not perfectly align with that of general English language from the table. Try to substitute letters represented its letter frequencies and then try to read the text you obtained and make changes. Please write detail report what you did in each step. Table 1.1 Relative letter frequencies of the English language Letter Frequency Letter Frequency A 0.0817 0.0675 B 0.0150 0.0751 C 0.0278 0.0193 D 0.0425 0.0010 e 0.1270 0.0599 F 0.0223 0.0633 G 0.0202 0.0206 H 0.0609 0.0276 I 0.0697 0.0098 J 0.0015 0.0236 K 0.0077 0.0015 L 0.0403 0.0197 M 0.0241 0.0007 N O P Q R s T U v w X Y Z
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started