Lab 4 Is
Lab 4 Is
4
Cryptography Extended
4.1 Introduction
4.1.1 What is Symmetric and Asymmetric Cryptography?
plaintext alphabet 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
WKHDWWDFNWRQLJKWVWDUWDWHLJKWUHJURXSDWVWDWLRQD
Task 1
RCTRZAVGGNJOCVORZXVIGZVMIOJNOVIYVBVDIVIYWZXJH
ZNOMJIBZM
4.2.2 Vigeneré Cipher
KEY T I M E T I M E T I M E T I
PLAINT
T H E T A R G E T I S A L I
EXT
CIPHER
M P Q X T Z S I M Q E E E Q
TEXT
Task 2
M V V X I Q R P
W C Y B O C P H
F A I J V M K Z
G H W V X T F E
C H C Y H N R N
W M M C N N R G
G G S O G
The plaintext
M V V J I Q R U
Z F J T R K T F
U F T K S A W X
U E V H U I Z Y
D L B Z W E G O
Z B T H K V M H
Q A O E T E V H
H O E R W G O R
As one of the cryptanalysis for MI6 you are assigned to decrypt the second cipher
text using the first ciphertext and its plaintext.
The private key is kept secret, while the public key may be
widely distributed. Messages are encrypted with the recipient's
public key and can only be decrypted with the corresponding
private key. The keys are related mathematically, but the private
key cannot be feasibly derived from the public key. It main purpose
is to prove the authenticity of the message source due to it
uniqueness of the private and public key pair.
n=p*q
and
ø(n)=(p-1)(q-1)
• computes: M = Cd mod n
Task 3
a. 15 mod 11
c. – 43 mod 53
a. Given p=7;q=11;e=17;m=8
Review Question
JRFGNEGGURNGGNPXNGRVTUGCZGBAVTUGORTVOLN
GGNPXVATGURZNVACBFGBHEBOWRPGVIRVFGBGNYQ
RFGEHPGVBABSGURRARZLONFRQFCNERABBARNAQN
ALGUVATQRFGEBLRIRELGUVATBALBHECNGU
LIOMWGFEGGDVWGHHCQUCRHRWAGWIOWQLKGZETK
KMEVLWPCZVGTHVTSGXQOVGCSVETQLTJSUMVWVEUV
LXEWSLGFZMVVWLGYHCUSWXOHKVGSHEEVFLCFDGV
SUMPHKIRZDMPHHBVWVWJWIXGFWLTSHGJOUEEHHVU
CFVGOWICQLTJSUXGLW
By using Google search kasiski test to help you in solving
this problem
4. Solve the equivalent modulo numbers for:-
a. 999 mod 3
c. 55 mod 57
d. 7-1 mod 53
e. 7-2 mod 53
a. Given p=3;q=11,e=7;m=5
b. Given p=7,q=11,e=5,m=8