Assignment 8
Assignment 8
Class Assignment 1
ReturnToBase
XYZ
Apply the provided polynomial, k = x^3 - x^2 + x - 1, to the first letter "R" (position 18 in the
alphabet).
R = 18 k = (18^3) - (18^2) + (18) - 1 = 5832 - 324 + 18 - 1 = 5521
Caesar ciphers commonly employ keys ranging from 0 to 25. We can confirm that the key
falls within this range by calculating the remaining after dividing 5521 by 26 (the number of
alphabet letters).
In Caesar ciphers, shifting right is similar to shifting left by the number of places left after
deducting the key from the alphabet length (26).
R to W (Shift 5)
e = i, t = o, and u = z.
r -> w n -> q
T to Y, o to t, and B to G.
Decrypted message using Caesar cipher: WiozwQY tG
The characters "XYZ" may not be part of the Caesar cipher and might be encoded differently.
We can't absolutely interpret "XYZ" in this situation since we don't know more about its
encoding strategy.
Class Assignment 2
AttackOnMonday
XYZ
Apply the provided polynomial, k = x^3 - x^2 + x - 1, to the first letter "A" (position 1 in the
alphabet).
A = 1 k = (1^3) - (1^2) + (1) - 1 = 1 - 1 + 1 - 1 = 0. Handling Zero Key:
A Caesar key of 0 indicates that no shift is done during decryption. This is a real possibility.
The characters do not move locations since the key is 0. The message stays the same.
AttackOnMonday
The characters "XYZ" may not be part of the Caesar cipher and might be encoded differently.
We can't absolutely interpret "XYZ" in this situation since we don't know more about its
encoding strategy.
In a normal cryptographic system, it is unlikely that the generated Caesar key (0) will be
public. Public keys are often designed to be made public and used for encryption, whilst
private keys are kept hidden for decoding. In this scenario, the generated key (0) appears to
be utilized solely for decrypting the message itself.
Class Assignment 3
aozchaagl
XYZ
Using the Caesar key write the Decypher key
Find the Plain Text from this Cypher=aozchaagl
Alphabet: 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
Index: 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.
Ciphertext: Aozchaagl
Plaintext: xlwzexxdi
Home Assignment 4
adnucnhfsnlzzt
XYZ
a -> (a-3) mod 26 = x d -> (d-3) mod 26 = w n -> (n-3) mod 26 = m u -> (u-3) mod 26 = r c ->
(c-3) mod 26 = a n -> (n-3) mod 26 = m h -> (h-3) mod 26 = e f -> (f-3) mod 26 = c s -> (s-3)
mod 26 = p n -> (n-3) mod 26 = m l -> (l-3) mod 26 = k z -> (z-3) mod 26 = w z -> (z-3) mod
26 = w t -> (t-3) mod 26 = s