Cryptography and Computer Security - Exercise 2
Subject: Modern Encryption: DES
Submission deadline: 10/11/2010, 16:00


Submit via EMAIL.

  1. (Do not submit) Download a cryptography library from the Internet and install it on your computer. You may use any library you find, for your favorite programming language. For this exercise you only need DES support. However, for future exercises, it is recommended that you find a library (or libraries) that support the following cryptographic algorithms:
    DES, Triple-DES, AES (Rijndael), RSA, Diffie-Hellman, El-Gamal, HMAC-MD5

Example, using teudat zehut number of 12345678:


# ./des-weight -e 12345678
Basic key: aa aa aa aa aa aa aa aa
Ciphertext: f3 c3 f7 a3 b5 9d 88 4b
...
Key: a8 aa aa aa aa aa aa aa
Ciphertext: 37 43 1e fe 43 51 b4 ec
Bit difference: 33
...

Notes:

Submission instructions

  1. Send your results via email to crypto-netsec@eng.tau.ac.il.
  2. The subject should be: ex2. Do NOT put a dash ("-") between the "x" and the "2" as it confuses the mailer.
  3. The body of the email should contain 3 lines, including the leading keywords and the ":=" symbols:
       TZ  := your "Teudat Zehut" number (9 digits)
       MIN  := the minimal Hamming distance from question 2.
       MAX  := the maximal Hamming distance from question 2.
    
  4. Send plain ASCII email. In particular:
    1. No attachments
    2. No HTML email: configure your mail program to generate "unformatted" or "Plain text" messages only (not "Rich formatting")
    3. Be extra careful with Outlook which by default sends the text encapsulated in an attachment called "winmail.dat". A recipe on how to fix this can be found in http://facstaff.gpc.edu/~jbenson/resource/winmail.htm (scroll all the way down)
    4. When in doubt, use a Unix text-based mailer like "mail" or "pine".



Avishai Wool 2010-10-22