0% found this document useful (0 votes)
217 views

Cryptography Activity

The document discusses different encryption techniques including the Caesar cipher and decimation cipher. It provides examples of encrypting and decrypting messages using these ciphers. Various cryptographic concepts and formulas are demonstrated such as shifting letters by a key for the Caesar cipher and rearranging letter positions based on their index multiplied by a key for the decimation cipher. Sample messages are encrypted and decrypted to illustrate how to apply the techniques.

Uploaded by

eatpry
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
217 views

Cryptography Activity

The document discusses different encryption techniques including the Caesar cipher and decimation cipher. It provides examples of encrypting and decrypting messages using these ciphers. Various cryptographic concepts and formulas are demonstrated such as shifting letters by a key for the Caesar cipher and rearranging letter positions based on their index multiplied by a key for the decimation cipher. Sample messages are encrypted and decrypted to illustrate how to apply the techniques.

Uploaded by

eatpry
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Cryptography

Caesar Code

1. Encrypt WINTER IS COMING using a Caesar Code.

Answer: ZLQWHU LV FRPLQJ

2. Decrypt D GUHDP LV D ZLVK BRXU KHDUW PONHV using Caesar code.

Answer: A DREAM IS A WISH YOUR HEART MAKES

B. Decimation Cipher

3. Encrypt CASTLE ON THE HILL using p= 3

Answer: GACFHM QN FVM VYHH

4. Using the decimation cipher with the key 7, encrypt MADE IN HOLLYWOOD.

Answer: GAVC EN XUZZMYUUV

5. Decrypt MSIU XUSXDU AHU GSHRJ IUDRONE ZSH with key 5

Answer: SOME PEOPLE ARE WORTH MELTING FOR

6. Using key 9, decrypt CAEK WT PLXWNKG

Answer: GAME OF THRONES

7. Encrypt CHRISTMAS IS NEAR where p = 7

Answer: OXPEWDGAW EW NCAP

8. Decrypt CFZANSMZ FVYNSC where p = 3

Answer: STRANGER THINGS


SOLUTIONS:

Caesar Code
1. Encrypt WINTER IS COMING using a Caesar Code

MESSAGE W I N T E R I S C O M I N G
ENCRYPTE Z L Q W H U L V F R P L Q J
D MESSAGE

2. Decrypt D GUHDP LV D ZLVK BRXU KHDUW PDNHV using Caesar code.

MESSAGE D G U H D P L V D Z L V K B R X U
DECRYPTED A D R E A M I S A W I S H Y O U R
MESSAGE

K H D U W P D N H V
H E A R T M A K E S

3. Encrypt CASTLE ON THE HILL using p = 3


MESSAGE C A S T L E O N T H E H I L L
1 1
POSITION 2 0 18 19 11 4 14 13 19 7 4 7 8
1 1
2 2 3 3
P=3 6 0 54 57 33 12 42 39 57 21 12
1 4 3 3
2 2
NEW POSITION 6 0 2 5 7 12 16 13 5 21 12 7 7
1 1
ENCRYPTED
MESSAGE
G A C F H M Q N F V M V Y H H

4. Using the decimation cipher with the key 7, encrypt MADE IN HOLLYWOOD.
MESSAGE M A D E I N H O L L Y W O O D

POSITION 12 0 3 4 8 13 7 14 11 11 24 22 14 14 3

P=7 84 0 21 28 56 91 49 98 77 77 16 154 98 98 21
8
PI MOD 26 6 0 21 2 4 13 23 20 25 25 12 24 20 20 21

ENCRYPTED G A V C E N X U Z Z M Y U U V
MESSAGE

5. Decrypt MSIU XUSXDU AHU GSHRJ IUDRONE ZSH with key 5

MESSAGE M S I U X U S X D U
NEW 12 18 8 20 23 20 18 23 3 20
POSITION
P=5 252 378 168 420 483 420 378 483 63 420
(NEW
POSITION X
21)

POSITION 18 14 12 4 15 4 14 15 11 4
DECRYPTED S O M E P E O P L E
MESSAGE
A H U G S H R J I U D R O N E Z S H
0 7 20 6 18 7 17 9 8 20 3 17 14 13 4 25 18 7
0 147 420 126 378 147 357 189 168 420 63 357 294 273 84 525 378 147

0 17 4 22 14 17 19 7 12 4 11 19 8 13 6 5 14 17
A R E W O R T H M E L T I N G F O R

6. Using key 9, decrypt CAEK WT PLXWNKG

MESSAGE C A E K W T P L X W N K G
NEW 2 0 4 10 22 19 15 11 23 22 13 10 6
POSITION
P=9 6 0 12 30 66 57 45 33 69 66 39 30 18
(NEW
POSITION X
3)
POSITION 6 0 12 4 14 5 19 7 17 14 13 4 18
DECRYPTED G A M E O F T H R O N E S
MESSAGE

7. Encrypt CHRISTMAS IS NEAR where p = 7

MESSAGE C H R I S T M A S   I S   N E A R
NEW 2 7 17 8 18 19 12 0 18   8 18   1 4 0 17
POSITION 3
P=7 14 4 11 56 12 133 84 0 126 56 12 9 2 0 119
9 9 6 6 1 8
POSITION 14 2 15 4 22 3 6 0 22   4 22   1 2 0 15
3 3
DECRYPTE O X P E W D G A W   E W   N C A P
D
MESSAGE

8. Decrypt CFZANSMZ FVYNSC where p = 3

MESSAGE C F Z A N S M Z   F V Y N S C
NEW 2 5 25 0 13 18 12 25   5 21 24 13 18 2
POSITION
P=3 18 45 22 0 11 16 10 22 45 18 21 11 16 18
5 7 2 8 5 9 6 7 2
POSITION 18 19 17 0 13 6 4 17   19 7 8 13 6 18
DECRYPTE S T R A N G E R   T H I N G S
D
MESSAGE

You might also like