131k views
4 votes
Your program needs to decode an encrypted text file called "encrypted.txt". The person who wrote it used a cipher specified in "key.txt". This key file would look similar to the following

User Kern
by
6.7k points

1 Answer

4 votes
A B
B C
C D
D E
E F
F G
G H
H I
I J
J K
K L
L M
M N
N O
O P
P Q
Q R
R S
S T
T U
U V
V W
W X
X Y
Y Z
Z A
The left column represents the plaintext letter, and the right column represents the corresponding ciphertext. Your program should decode the "encrypted.txt" file using "key.txt" and write the plaintext to "decrypted.txt".
User Erdeszt
by
5.8k points