Académique Documents
Professionnel Documents
Culture Documents
p. 1/??
Decoding Shift-cipher
Alphabet: Z26 .
p. 2/??
Decoding Shift-cipher
Alphabet: Z26 .
Problem: Decode a ciphertext wklvverxogehtxlwhhdvb
encoded with a shift cipher
p. 2/??
Decoding Shift-cipher
Alphabet: Z26 .
Problem: Decode a ciphertext wklvverxogehtxlwhhdvb
encoded with a shift cipher
allshift(wklvvkrxogehtxlwhhdvb)
p. 2/??
Decoding Shift-cipher
Alphabet: Z26 .
Problem: Decode a ciphertext wklvverxogehtxlwhhdvb
encoded with a shift cipher
allshift(wklvvkrxogehtxlwhhdvb)
thisshouldbequiteeasy (plain text can be found in the
output)
p. 2/??
Alphabet: Z26 .
p. 3/??
Alphabet: Z26 .
Problem: Encrypt the plain text meetmeinstlouis with
an affine cipher E3,7 (x) 3x + 7
p. 3/??
Alphabet: Z26 .
Problem: Encrypt the plain text meetmeinstlouis with
an affine cipher E3,7 (x) 3x + 7
affinecrypt(meetmeinstlouis, 3, 7)
ans = rttmrtfujmoxpfj (ciphertext in the output).
p. 3/??
Alphabet: Z26 .
p. 4/??
Alphabet: Z26 .
Problem: The cipher text rttmrtfujmoxpfj was
encrypted using the affine function f (x) = 3x + 7 in
Z26 . Decrypt it.
p. 4/??
Alphabet: Z26 .
Problem: The cipher text rttmrtfujmoxpfj was
encrypted using the affine function f (x) = 3x + 7 in
Z26 . Decrypt it.
(Step 1: ) Compute the inverse function
f 1 (y) 9y + 15 (mod 26).
p. 4/??
Alphabet: Z26 .
Problem: The cipher text rttmrtfujmoxpfj was
encrypted using the affine function f (x) = 3x + 7 in
Z26 . Decrypt it.
(Step 1: ) Compute the inverse function
f 1 (y) 9y + 15 (mod 26).
(Step 2: ) Decryption using matlab:
affinecrypt(rttmrtfujmoxpfj, 9, 15)
ans = meetmeinstlouis
p. 4/??
p. 5/??
p. 5/??
p. 5/??
p. 6/??
p. 6/??