Docsity

Code Busters Practice Test, Slides of Cryptography and System Security

Toggle sidebar
bg1
Code Busters Practice Test
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=25
For mono-alphabetic substitution cyphers the only constraint on ciphertext alphabets is
that no letter may decrypt to itself
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Code Busters Practice Test and more Slides Cryptography and System Security in PDF only on Docsity!

Code Busters Practice Test

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

JGQW SBE GMS YHWG JBF AEVJ PSOGMPD IWGO PJW NWBNLW PJWS

BNOWDD? GLL BI PJWA OWGLYTW PJGP, BMW HGS, GABMXDP PJWYO AGMS

QYVPYAD, PJWOW YD DEOW PB BMW PJGP OYDWD GXGYMDP PJWA GMH

DPOYZWD UGVZ!

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

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

G U V H W I X J Y K Z L A M B N C O D P E Q F R S T

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

XLY TD MZCY QCPP, LYO PJPCJHSPCP SP UD TY NSLTYD. SPCP’D ZYP HSZ

ESTYVD SP UD DSP XLDEPC ZQ ZESPCH, JPE SP UD XZCP PYDWLGPO ESLY ESPJ

LCP.

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

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

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

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

CX CO I NSFCEJ EB ACPCD YIF. FSRSD ONIASOTCNO, OXFCUCMB BFEV I TCJJSM

RIOS, TIPS YEM XTSCF BCFOX PCAXEFQ IKICMOX XTS SPCD KIDIAXCA SVNCFS

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

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

I R A J S B K T C L U D V M E N W F O X G P Y H Q Z

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.

HVS ACIFBWU VOR RKBR QZSSF OBR QCZR, KWHV O QFWGDBSGG HVOH

VBHSR OH HVS OBR CT GIAASF. HVOM GSH TCFHV OH RSMPFOY HC GSS O

AOB PSVSRSR, HKSBHSS WB OZZ, ZBR PFOB FCRS OACIBU HVSA, BSFJIG KWHV

SLGWHASBH

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

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

O P Q R S T U V WX Y Z A B C D E F G H I J K L M N

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.

CJRN OPKD YJAH ZWPO DQZI ZQZM NZZI VNJI JAVY VHJM VYVP BCOZ MJAZ

QZWZ AJMZ

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

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

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

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+

SPACE, THE FINAL FRONTEIR. THESE ARE THE VOYAGES OF THE STARSHIP

ENTERPRISE.

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

YJXUP, IA EKEY Q

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

  • 2076 mod 29 = 12; 12 *x = 1 mod 29 x=

300 pts

Encode the following plain text using a Vigenère Cipher with a key of BUTTERCUP

LIFE IS PAIN, HIGHNESS.

MCZY MJ RUYO, BNGLHGOH.

300 pts

Decrypt this Baconian cipher with a 24 letter alphabet (I,J and U,V are one

letter)

ABABBABAAABABABAABAA ABABBABBBAABBABAABBA AAAAAABBABAAABB

ABBBBBAAABABBBABAABAABBBBAABAABAAAB

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