














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















You have 45 Minutes to complete this test
Record your time when you finish the first question
For added realistic test conditions, have someone else know the answer to the first
question and tell you if you are correct or incorrect. If incorrect, you may try again.
Record the time when you get the question correct.
For the purposes of this test, A=0,B=1,C=2… Z=
For mono-alphabetic substitution cyphers the only constraint on ciphertext alphabets is
that no letter may decrypt to itself
You may need the following table
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
A 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
B 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 A
C C D E F G H I J K L M N O P Q R S T U V W X Y Z A B
D D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
E E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
F F G H I J K L M N O P Q R S T U V W X Y Z A B C D E
G G H I J K L M N O P Q R S T U V W X Y Z A B C D E F
H H I J K L M N O P Q R S T U V W X Y Z A B C D E F G
I I J K L M N O P Q R S T U V W X Y Z A B C D E F G H
J J K L M N O P Q R S T U V W X Y Z A B C D E F G H I
K K L M N O P Q R S T U V W X Y Z A B C D E F G H I J
L L M N O P Q R S T U V W X Y Z A B C D E F G H I J K
M M N O P Q R S T U V W X Y Z A B C D E F G H I J K L
N N O P Q R S T U V W X Y Z A B C D E F G H I J K L M
O O P Q R S T U V W X Y Z A B C D E F G H I J K L M N
P P Q R S T U V W X Y Z A B C D E F G H I J K L M N O
Q Q R S T U V W X Y Z A B C D E F G H I J K L M N O P
R R S T U V W X Y Z A B C D E F G H I J K L M N O P Q
S S T U V W X Y Z A B C D E F G H I J K L M N O P Q R
T T U V W X Y Z A B C D E F G H I J K L M N O P Q R S
U U V W X Y Z A B C D E F G H I J K L M N O P Q R S T
V V W X Y Z A B C D E F G H I J K L M N O P Q R S T U
W W X Y Z A B C D E F G H I J K L M N O P Q R S T U V
X X Y Z A B C D E F G H I J K L M N O P Q R S T U V W
Y Y Z A B C D E F G H I J K L M N O P Q R S T U V W X
Z Z 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
Worth 4 00pts + Timing Bonus
Timing bonus = 4 * (600 – time(s))
The following cipher is a mono-alphabetic substitution with spaces
freq 6 9 0 12 3 1 16 3 2 11 0 4 8 3 9 17 2 0 6 1 1 3 20 2 9 2
Have you any idea how much tyrants fear the people they oppress? All of them realize that, one day, amongst their many victims, there is sure
to be one that rises against them and strikes back!
Worth 2 00 pts
The following ciphertext is a mono-alphabetic substitution from Jean Jacques
Rousseau’s Social Contract. One thing to note is that Rousseau likes to use masculine
pronouns
freq 0 0 9 10 6 0 1 3 0 4 0 7 1 1 2 21 2 0 12 4 3 1 1 3 9 6
Man is born free, and everywhere he is in chains. Here’s one who thinks he is the master of others, yet he is more enslaved than they are.
Worth 5 00 pts
No hint for this one
freq 5 4 16 4 5 9 0 0 10 3 2 0 2 4 8 4 1 2 12 5 1 4 0 8 2 0
It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their
first victory against the evil Galactic Empire.
Worth 6 00 pts
The following ciphertext is a mono-alphabetic substitution with typos.
freq 7 14 7 1 0 9 8 18 4 1 4 1 2 0 14 3 3 12 22 2 2 11 6 0 1 5
The mourning had dwnd cleer and cold, with a crispness that hnted at the and of summer. Thay set forth at deybrak to see a man beheded,
twentee in all, and Bran rode among them, nervus with exsitment.
Worth 700 pts
No clue, no punctuation, no spaces.
freq 4 1 2 2 0 0 0 2 3 7 1 0 4 3 3 3 3 1 0 0 0 5 2 0 3 11
How stupid of me! But I’ve never seen a Son of Adam or a Daughter of Eve before.
Worth 300 pts
Encode the following sentence using an affine cipher with a key of 5x+
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
Value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
5x 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125
5x + 4 4 9 14 19 24 29 34 39 44 49 54 59 64 69 74 79 84 89 04 99 104 109 114 119 124 129
Ans
mod 26
4 9 14 19 24 3 8 13 18 23 2 7 12 17 22 1 6 11 16 21 0 5 10 15 20 25
E J O T Y D I N S X C H M R W B G L Q V A F K P U Z
QBEOY, VNY DSREH DLWRVYSL. VNYQY ELY VNY FWYEIYQ WD VNY QVELQNSB
YRVYLBLSQY.
Worth 50 0 points
The Dread Pirate Roberts needs your help encrypting this phrase. He started from the
end and needs your help finishing. Finish encrypting the following phrase using a hill
cipher with a key of ASYOUWISH. The strikethrough has already been encrypted, only
encrypt the bold
HELLO, MY NAME I S INIGO MONTOYA. YOU KILLED MY FATHER. PREPARE TO DIE
_____, __ ____ __ _____ _______. __I YGINCM VS OFRMLN. MVMSTFC EE GVO
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
Value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Worth 600 pts
Find the decryption key for a hill cipher with a key of HOLYGRAIL with this 29
letter 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 ; | +
Value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
300 pts
Encode the following plain text using a Vigenère Cipher with a key of BUTTERCUP
300 pts
Decrypt this Baconian cipher with a 24 letter alphabet (I,J and U,V are one
letter)
Live long and prosper
Question 15a
400 points
Given prime numbers p =79 and q = 83 and exponent e=5, generate the RSA
public and smallest possible private key.
Public key (6557, 5) 200 pts
Theta(n) = 78*82 = 6396
(4 Theta(n)+1)/5 = 5117
Private Key = 5117 200 pts
Question 15b
200 points
Using the keys above, encrypt the number 81
81^5 mod 6557 = 1296