Docsity

Codebusters prep material, Exercises of Computer science

Toggle sidebar
bg1
The negatives idea:
To eliminate lengthy calculations, big numbers can be turned into smaller negatives
in modulus of 26
ex.
14 mod 26 = -12 mod 26
18 mod 26 = -8 mod 26
25 mod 26 = -1 mod 26
Since all hill calculations are in modulus of 26, this just makes you able to
calculate it slightly faster by hand.
Tips:
13 * even = 0 in mod 26 ( * 2
C
mod 26 = 26
C
mod 26 = 0 mod 26)
26
2
13 * odd = 13 in mod 26 (same idea)
Know your factors of 26 (26, 52, 78, 104, 130)
Remember that Hills take a very long time and are often worth very little points
anyway
๐Ÿ˜ญ
So the new alphabet is:
A
B
C
D
E
F
G
H
I
J
K
L
M
0
1
2
3
4
5
6
7
8
9
10
11
12
N
13
O
P
Q
R
S
T
U
V
W
X
Y
Z
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
Example calculation:
Key word: TARP
Text: WPQFDFBOEF
Decryption matrix:
pf3

Partial preview of the text

Download Codebusters prep material and more Exercises Computer science in PDF only on Docsity!

The negatives idea:

To eliminate lengthy calculations, big numbers can be turned into smaller negatives in modulus of 26

ex. 14 mod 26 = -12 mod 26 18 mod 26 = -8 mod 26 25 mod 26 = -1 mod 26

Since all hill calculations are in modulus of 26, this just makes you able to calculate it slightly faster by hand.

Tips:

13 * even = 0 in mod 26 ( 262 * 2C mod 26 = 26C mod 26 = 0 mod 26)

13 * odd = 13 in mod 26 (same idea)

Know your factors of 26 (26, 52, 78, 104, 130)

Remember that Hills take a very long time and are often worth very little points anyway ๐Ÿ˜ญ

So the new alphabet is:

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

Example calculation:

Key word: TARP Text: WPQFDFBOEF

Decryption matrix:

(mod 26)

Text:

W P Q F D F B O E F -4 -11 -10 5 3 5 1 -12 4 5

Calculation:

-44+

8 I

36- 10+ 11 L

-110+

U

90+ 125

V

33+ 33 7 H

-27+ -1+ 8 I