Exam1-Sol - CIS 3362 Test #1: Classical Cryptographic...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 3362 Test #1: Classical Cryptographic Schemes Date: 9/20/2010 SOLUTIONS 1) (10 pts) Encrypt “DOLPHINS” using the affine cipher with the encryption function f(x) = (15x+ 7) mod 26. f(D) = f(3) = 15(3) + 7 = 52 mod 26 = 0 = A f(O) = f(14) = 15(14) + 7 = 217 mod 26 = 9 = J f(L) = f(11) = 15(11) + 7 = 172 mod 26 = 16 = Q f(P) = f(15) = 15(15) + 7 = 232 mod 26 = 24 = Y f(H) = f(7) = 15(7) + 7 = 112 mod 26 = 8 = I f(I) = f(8) = 15(8) + 7 = 127 mod 26 = 23 = X f(N) = f(13) = 15(13) + 7 = 202 mod 26 = 20 = U f(S) = f(18) = 15(18) + 7 = 277 mod 26 = 17 = R Answer: AJQYIXUR Grading: -1 for first two mistakes, -2 for third mistake, -1 for next two mistakes, -2 for sixth mistake, -1 for remaining mistakes.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2) (10 pts) Determine the corresponding decryption function for the encryption function given in question #1. x = 15f -1 (x) + 7 mod 26 (2 pts) 15f -1 (x) = (x – 7) mod 26 (2 pts) 7(15f -1 (x)) = 7(x – 7) mod 26 (3 pts) f -1 (x) = (7x – 49) mod 26 (1 pt) f -1 (x) = (7x + 3) mod 26 (2 pts)
Background image of page 2
3) (15 pts) Determine the value of 31 -1 mod 86. 86 = 2 x 31 + 24 (1 pt) 31 = 1 x 24 + 7 (1 pt) 24 = 3 x 7 + 3 (1 pt) 7 = 2 x 3 + 1 (1 pt) 7 – 2 x 3 = 1 (2 pts) 7 – 2(24 – 3 x 7) = 1 7 – 2 x 24 + 6 x 7 = 1 7 x 7 – 2 x 24 = 1
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/13/2011 for the course CIS 3362 taught by Professor Staff during the Fall '08 term at University of Central Florida.

Page1 / 9

Exam1-Sol - CIS 3362 Test #1: Classical Cryptographic...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online