Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement in either matlab, C, C++, C#, python, java, or any language of your choice functions to encrypt, decrypt, and attack the following crypto: Y

Implement in either matlab, C, C++, C#, python, java, or any language of your choice functions to encrypt, decrypt, and attack the following crypto:

Yi= (Xi+ Ki%m) % 256

Xi= (Yi- Ki%m) % 256

Where {Xi ; i = 0 : N-1 } is the input plain N ASCII bytes , {Ki ; i = 0 : m-1 } is the keyword of length m of lower case characters, and {Yi; i = 0 : N-1} is the output cipher N bytes.

To test your routines you need to encrypt a .txt file and decrypt the resulting file. Exchange the encrypted files with your lab partner, and then run your attack routine to find out your partner's secret keyword and decrypt his/her encrypted file.

Your report should include answers to the following questions:

  1. What is the typical probability distribution of the 256 ASCII characters in .txt data?
  2. What is the effect of Vigenere encryption on the data statistics of .txt data such as mode, mean, median, standard deviation and entropy?
  3. What is the effect of cascading 2 Vigenere crypto systems on the security of the system?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions