CS 472

Assignment #2

Due Midnight, Thursday  Oct. 13, 2005


Part 1

 

Q1:
A. Show the result, in HEX, of the first round of DES to encrypt one  data block D (consists of 1 followed by 0s)  with a key K (consists of 1 followed by 0s). 

Q2:
Repeat Q1 using AES-128.

 

Submit your answer as described in Part 2 below.               

 


Part 2

This is based on openssl    (it is installed at: /usr/local/ssl/bin/openssl)

Use your public/private key pair you have generated in Assignment #1.

Choose a password Y, encrypt it using   wahabPublicKey.pem , encode the result to base-64 and store it in a file called Passwd.base64

Let A2.zip is a zip file containing the relevant files of your solution to Part 1. For example, if you like to submit files: f1 f2 f3  under  the current directory you may use the command:

 % zip   A2.zip f1 f2 f3

Sign the message digest of  A2.zip  using  your private key, encode the result  to base-64 and store it in a file called: A2ZipMdSignature.base64  

Encrypt A2.zip using the password Y and let A2Zip.base64 be the encrypted base64 encoded file.

Create one file called   <login>A2Files.zip that contains:

Passwd.base64

A2Zip.base64

A2ZipMdSignature.base64

Finally, submit  <login>A2Files.zip  to cs472 under the directory Assignment  #2