Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

L. Affine Cipher (4 pts) 11|2|3|4| 5|4|? |-|110-| 11 | 12| 13| 1411 11.6 117 li. Iig |20 |21 |22 |23 |24 |25 The Affine

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
L. Affine Cipher (4 pts) 11|2|3|4| 5|4|? |-|110-| 11 | 12| 13| 1411 11.6 117 li. Iig |20 |21 |22 |23 |24 |25 The Affine cipher is a simple substitution cipher that is similar to the Caesar cipher. The key' for the Affine cipher consists of 2 numbers, we'll call them a and b. . We assume the use of a 26 character alphabet (m - 26). . a should be chosen to be relatively prime to m (Le.a should have no factors in common with m). . The algorithm for computing t e Affine cipher is: o For each letter in the plaintext Convert the letter to the corresponding number p (see table above). Compute the cipher number using the formula - c ap+ b (mod m) Find the cipher letter in the alphabet that corresponds to the number c. Append the cipher letter to the cipher text you are generating - - a) Practice encrypting with the Affine cipher Given the following plaintext messages, compute the Affine cipher with a - 9 and b-4 (m is 26 since we have an alphabet of 26 letters) Plaintext Ciphertext attackatdawn retreatnow Instructor Initials L. Affine Cipher (4 pts) 11|2|3|4| 5|4|? |-|110-| 11 | 12| 13| 1411 11.6 117 li. Iig |20 |21 |22 |23 |24 |25 The Affine cipher is a simple substitution cipher that is similar to the Caesar cipher. The key' for the Affine cipher consists of 2 numbers, we'll call them a and b. . We assume the use of a 26 character alphabet (m - 26). . a should be chosen to be relatively prime to m (Le.a should have no factors in common with m). . The algorithm for computing t e Affine cipher is: o For each letter in the plaintext Convert the letter to the corresponding number p (see table above). Compute the cipher number using the formula - c ap+ b (mod m) Find the cipher letter in the alphabet that corresponds to the number c. Append the cipher letter to the cipher text you are generating - - a) Practice encrypting with the Affine cipher Given the following plaintext messages, compute the Affine cipher with a - 9 and b-4 (m is 26 since we have an alphabet of 26 letters) Plaintext Ciphertext attackatdawn retreatnow Instructor Initials

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions