Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Wachemo University

College of Post Graduate Studies


School of Computing and Informatics
Department of Information Technology
Assignment
On
Cryptography

Submitted to: Sofonias Yitagesu (Ph.D.)

Name: Wadola Habte


ID: WCU/E/1401174

Hossana, Ethiopia
February 2023
The task to accomplish here is showing steps of how a given text can be encrypted and
decrypted. I will be using Vernam cipher technique for the task. Vername cipher is substitution
technique that where each character of a given plain text is encrypted with its own key. Here the
same is used for both encryption and decryption task.

Steps for Encryption


1. English letters with sequence of integers assigned starting from A=0 up to Z=25

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

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

2. Given plain text: “WACHEMO UNIVERSITY” and the corresponding integer values
assigned for each letter

W A C H E M O U N I V E R S I T Y
22 0 2 7 4 12 14 20 13 8 21 4 17 18 8 19 24

3. Encryption key: “WADOLA HABTE TASEMO” and the corresponding integer values
assigned for each letter

W A D O L A H A B T E T A S E M O
22 0 3 14 11 0 7 0 1 19 4 19 0 18 4 12 14

4. The next task is taking the sum integer values assigned for each letter of the given plain text
and the key
W+W A+A C+D H+O E+L M+A O+H U+A N+B I+T V+E E+T R+A S+S I+E T+M Y+O
44 0 5 21 15 12 21 20 14 27 25 23 17 36 12 31 38

1|Page
5. Then if the result of each summation exceeds or equals 26, subtract 26 and find the
corresponding letter for the resulting integers of the computation in the list of English
alphabets with their integer values assigned in step 1

W+W A+A C+D H+O E+L M+A O+H U+A N+B I+T V+E E+T R+A S+S I+E T+M Y+O
44-26 0 5 21 15 12 21 20 14 27- 25 23 17 36- 12 31- 38-
26 26 26 26
18 0 5 21 15 12 21 20 14 1 25 23 17 10 12 5 12
S A F V P M V U O B Z X R K M F M

6. So, the cipher text of the plain text, “WACHEMO UNIVERSITY” will be:
“SAFVPMVUOBZXRKMFM”
Steps for Decryption

1. Decryption key: “WADOLA HABTE TASEMO” and the corresponding integer values
assigned for each letter (the same key use for encryption)
W A D O L A H A B T E T A S E M O
22 0 3 14 11 0 7 0 1 19 4 19 0 18 4 12 14

2. The cipher text: “SAFVPMVUOBZXRKMFM” and the corresponding integer values


assigned for each letter
S A F V P M V U O B Z X R K M F M
18 0 5 21 15 12 21 20 14 1 25 23 17 10 12 5 12

3. The third step is subtracting the integer values assigned for each letter of the key from the
integer values of the corresponding letter in the cipher text
S-W A-A F-D V-O P- M-A V-H U-A O-B B-T Z-E X-T R-A K-S M-E F-M M-O
L
-4 0 2 7 4 12 14 20 13 -18 21 4 17 -8 8 -7 -2

2|Page
4. The fourth step is adding 26 to each result of the subtraction performed in step 3 if any value
less than 0 (negative) exists and finding the corresponding letter for the resulting integers of
the computation in the list of English alphabets with their integer values assigned in step 1 of
Encryption part

S-W A- F-D V-O P- M- V-H U-A O-B B-T Z-E X-T R-A K-S M- F-M M-
A L A E O
-4 0 2 7 4 12 14 20 13 -18 21 4 17 -8 8 -7 -2
+26 +26 +26 +26 +26
22 0 2 7 4 12 14 20 13 8 21 4 17 18 18 19 24
W A C H E M O U N I V E R S I T Y

5. The result of the decryption of the cipher, “SAFVPMVUOBZXRKMFM” is:


“WACHEMOUNIVERSITY”

3|Page

You might also like