{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework 1 - 2 In this problem you will use a modified ECB...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 4363 Homework 1 Due: 2/15/2007 1. In this problem you will use a modified RC4 cipher. The text is encrypted at half a byte, 4 bits, at a time. Let’s call half a byte, 4 bits, as a unit. Vector S will be 16-unit long, from S[0] to S[15]. Each S[i] will have 4 bits, containing a number from 0 to 15. K will have a length equal or less then 16 units. Find the cipher text using the given K and plaintext. Hint: Convert each character to the ASCII code, which is a byte long. So every character will be converted into two units. You don’t need to convert cipher text back to characters, as you might end up with very strange characters. Just write every unit in hex, from 0 to F. An ASCII table is attached for your reference. a) K = “GOKNIGHT”, Plaintext = “FIRSTEXAM” b) K = “GETA”, Plaintext = “INCIS4363”
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2. In this problem you will use a modified ECB cipher. Instead of encrypting 64 bits at a time, encrypt a fixed length of characters at a time using Hill cipher. Find the cipher text using the given Hill cipher key and plaintext. Hint: Convert each character to a number between 0 and 25, as in Hill cipher. The fixed length is determined by Hill cipher key. a) = 3 19 8 7 K , Plaintext = “FIRSTEXAMX” b) = 19 21 5 2 18 17 2 21 17 K , Plaintext = “INTHISCOURSE” 3. Do problem 2 again with a modified Cipher Block Chaining Mode. Instead of XOR the plaintext block with the previous cipher text block, add them up character by character and then mod by 26. Hint: (11, 12) + (21, 22) = (11+21, 12+22) = (32, 34) = (6, 8)...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern