Sei sulla pagina 1di 3

PROBLEMS

Exercise 1: Use both Euclids algorithm and Extended Euclids algorithm to compute GCD (1970, 1066), showing all steps of the computations.

Exercise 2: Encrypt the message using full-vigenere cipher, given key=


codebreaker. It was the threat of enemy interception that motivated the development of codes and ciphers

Exercise 3: Decrypt the following cipher encrypted by full-vigenere and


simple shift vigenere cipher, given key = try. MYCVPTJMGVJDOVKQLCUHSJFQTLU

Exercise 4: One way to solve the key distribution problem is to use a line
from a book that both the sender and the receiver possess. Typically, at least in spy novels, the first sentence of a book serves as the key. The particular scheme discussed in this problem is from one of the best suspense novels involving secret codes, Talking to Strange Men, by Ruth Rendell. Work this problem without consulting that book! Consider the following message: SIDKHKDM AF HCRKIABIE SHIME KD LFEAILA This ciphertext was produced using the first sentence of The Other Side of Silence (a book about the spy Kim Philby): The snow lay thick on the steps and the snowflakes driven by the wind looked black in the headlights of the cars. A simple substitution cipher was used. a. b. What is the encryption algorithm? How secure is it?

c. To make the key distribution problem simple, both parties can agree to use the first or last sentence of a book as they key. To change the key, they simply need to agree on a new book. The use of the first sentence would be preferable to the use of the last. Why?

Exercise 5: What are the essential ingredients of a symmetric cipher?

Exercise 6: What are the two basic functions used in encryption algorithms? Exercise 7: How many keys are required for two people to communicate via a
cipher?

Exercise 8: What is the difference between a block cipher and a stream cipher? Exercise 9: What are the two general approaches to attacking a cipher? Exercise 10: List and briefly define types of cryptanalytic attacks based on what is
known to the attacker. Exercise 11: Briefly define the Caesar cipher. Exercise 12: Briefly define the monoalphabetic cipher. Exercise 13: What is the difference between a monoalphabetic cipher and a polyalphabetic cipher? Exercise 14: What is a transposition cipher? Exercise 15: A generalization of the Caesar cipher, knows as the affine Caesar cipher, has the following form: For each plaintext letter p, substitute the ciphertext letter C: C = E([a, b], p) = (ap + b) mod 26 A basic requirement of any encryption algorithm is that it be one-to-one. That is, if p q, then E(k, p) E(k, q). Otherwise, decryption is impossible, because more than one plaintext character maps into the same ciphertext character. The affine Caesar cipher is not one-to-one for all values of a. For example, for a = 2 and b = 3, then E([a, b], 0) = E([a, b], 13) = 3. a. Are there any limitations on the value of b? Explain why or why not. b. Determine which values of a are not allowed. c. Provide a general statement of which values of a are and are not allowed. Justify your statement. Exercise 16: How many one-to-one affine Caesar ciphers are there? Exercise 17: A ciphertext has been generated with an affine cipher. The most frequent letter of the ciphertext is 'B', and the second most frequent letter of the ciphertext is 'U'. Break this code. Exercise 18: A disadvantage of the general monoalphabetic cipher is that both sender and receiver must commit the permuted cipher sequence to memory. A common technique for avoiding this is to use a keyword from which the cipher sequence can be generated. For example, using the keyword CIPHER, write out the keyword followed by unused letters in normal order and match this against the plaintext letters: plain: a b c d e f g h i j k l m n o p q r s t u v w x y z cipher: C I P H E R A B D F G J K L M N O Q S T U V W X Y Z If it is felt that this process does not produce sufficient mixing, write the remaining letters on successive lines and then generate the sequence by reading down the columns: C I P H E R A B D F G J K L M N O Q S T U V W X Y Z This yields the sequence C A K S Y I B L T Z P D M U H F N V E G O W R J Q X Determine the keyword. Exercise 19: When the PT-109 American patrol boat, under the command of Lieutenant John F. Kennedy, was sunk by a Japanese destroyer, a message was received at an Australian wireless station in Playfair code: KXJEY UREBE ZWEHE WRYTU HEYFS KREHE GOYFI WTTTU OLKSY CAJPO BOTEI ZONTX BYBNT GONEY CUZWR GDSON SXBOU YWRHE BAAHY USEDQ The key used was royal new zealand navy. Decrypt the message. Translate TT into tt.

Exercise 20: Compare between symmetric encryption methods and Asymmetric


(public) encryption methods Exercise 21: How many keys are required for two peoples to communicate via? A)- Symmetric cipher B)-Asymmetric cipher Exercise 22: For 100 workstations in a bank, A summing that a full connection between 2 computers is required find the number of different keys in the system if a. Symmetric will be used b. Asymmetric (public) will be used.

Exercise 23: Using shifted alphabet which is encrypted message for (Help) is 1gdho 2- ifnq 3- ebim 4-qatp

Exercise 24: Encrypt manually the following plain text "Please transfer million
dollars to my Egyptians agent at Cairo "by: a. monoalphabtic cipher b. monographic substitution c. polyalphabtic substitution d. transposition algorithm And decrypt the cipher text to get the plain text? Exercise 25: Encrypt" this secret message is encrypted" with key word "yoanpjz" with a. Play-fair b. combination between substitution &transposition c. Full-vigenere cipher d. Transposition method e. Poly-alphabtic substitution And decrypt the cipher text to get the plain text Exercise 26: Decrypt the following text using transposition technique AFLLSKSOSELAWAIATOOSSCTCLNMOMANT ESILYNTWRNNTSOWDPAEDOBUOERIRICXB With key word MEGABUCK

Potrebbero piacerti anche