Hill cipher:

Q: Hill cipher:
The purpose of this assignment is to implement functions for encryption/decryption with the Hill cipher, as well as attacks.

Item #1. Implement functions to perform encryption/decryption with 2x2 Hill Cipher. The key should be an invertible matrix over the integers mod 26.

Item #2. This question is to implement and use a known plaintext attack on the Hill cipher. You may use functions from previous question for the Hill Cipher. Implement a known plaintext attack on the hill cipher.

Item #3. Show the output of your encrypt function (Item #1) on the following (key, plaintext) pair:
a) k = (9  4, 5  7 ), plaintext = "Meet me at the usual place at ten rather than eight oclock."

Item #4. Show the output of your decrypt function (Item #1) on the following (key, ciphertext) pair:
a) k = ( 1  13, 2  3), ciphertext = 'YIFZMA.'

Item #5. Use the function that you wrote in part (Item #2) to attack the following plaintext/ciphertext pairs:
a) plaintext = "friday" ciphertext = "IZRVEY"
b) plaintext = "diamondisinstatue" ciphertext = "ZISXLHDIWDINGTHYQQ"
c) plaintext = "thesecretdietistofuhotdogs"
ciphertext = "QBAYZELWILKSSCIPQPSVKAFVSSYY"

September 20th, 2013 12:34am

Hi,

Did use Microsoft Visual Studio to do some program code?

Here is the forum to discuss questions and feedback for Microsoft Visio, I recommend you post question to the MSDN forum

http://social.msdn.microsoft.com/Forums/en-US/home?category=visualstudio&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

George Zhao
TechNet Community Support


Free Windows Admin Tool Kit Click here and download it now
September 20th, 2013 7:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics