Answer:
See the explanation section
Step-by-step explanation:
The general representation of alphabet encoding is given as:
A = 0, B = 1, C = 2, D = 3, E = 4, F = 5, G = 6, H = 7, I = 8, J = 9, K = 10, L = 11,
M = 12, N = 13, O = 14, P = 15, Q = 16, R = 17, S = 18, T = 19, U = 20, V = 21,
W = 22, X = 23, Y = 24, Z = 25.
Based on the sample:
Cipher = E(p, k) = (p + k) mod 26
We want to encrypt SECRECY:
Using a key of 18 10 88 65 40 22 25
S = (18 + 18) mod 26 = 36 mod 26 = 10 =K
E = (4 + 10) mod 26 = 14 mod 26 = 14 = O
C = (2 + 88) mod 26 = 90 mod 26 = 12 = M
R = (17 + 65) mod 26 = 82 mod 26 = 4 = E
E = (4 + 40) mod 26 = 44 mod 26 = 18 = S
C = (2 + 22) mod 26 = 24 mod 26 = 24 = Y
Y = (24 + 25) mod 26 = 49 mod 26 = 23 = X
Therefore, the cipher will be written as: KOMESYX.
Note: p = plaintext and k = key.