operator<<
John Cormie's Radio Weblog

 






Subscribe to "operator<<" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Wednesday, January 22, 2003


C&O 487 - Applied Cryptography, Assignment 1, Question 1:

Retrieve "pagexy" from the "Assignments" section on the course web site, where xy are the last two digits of your student ID number. This page contains ciphertext that was genereated using a Vigenere cipher as described in class. The secret key word is an English word (names of cities and countries are included) having no repeated letters. All punctuation and spaces were removed from the plaintext, which was then blocked off into groups of 5 letters prior to encryption. Your task is to recover the secret key word. You may use any method to find the key word, including clandestine attacks. For this problem, please only hand in the page number and the key word.

Matt's post earlier today suggests that he chose the "clandestine" approach and stole the solution from my room. Shame, Matt, shame.

Here is the source code to the program that I wrote to crack a Vigenere cipher using exhaustive key search. It will read keys from stdin, decrypt the cipher text with it, then give the candidate plaintext a score based on it's similarity to a dictionary you provide. On EOF, it outputs the the key and the plaintext with the highest score. It's mostly undocumented and I introduced a subtle flaw before posting so you'll have to find it and fix it before using it to cheat on this assignment, like Matt did (in the moral sense). Write your own damn program!
5:23:19 PM     comment []



Click here to visit the Radio UserLand website. © Copyright 2004 John Cormie.
Last update: 3/21/2004; 10:28:46 AM.

January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb