1- A simple encryption method is being used to encrypt a small number (called the secret number). The method by which this encryption works is as follows: I. Choose a random seed number II. Calculate the key by multiplying the seed with the secret under modulus 7 III. Finally, multiply the key with the secret to get the encrypted secret Example: If our secret number was 45Randomly choose seed = 6 key = secret x seed (mod 7) = 45 x 6 (mod 7) = 4Encrypted Secret = key x secret = 45 x 4 = 180 Based on this encryption method, when choosing the random seed, show which number should not be used, because it would result in the Secret and the Encrypted Secret being the same.
1- A simple encryption method is being used to encrypt a small number (called the secret number). The method by which this encryption works is as follows: I. Choose a random seed number II. Calculate the key by multiplying the seed with the secret under modulus 7 III. Finally, multiply the key with the secret to get the encrypted secret Example: If our secret number was 45Randomly choose seed = 6 key = secret x seed (mod 7) = 45 x 6 (mod 7) = 4Encrypted Secret = key x secret = 45 x 4 = 180 Based on this encryption method, when choosing the random seed, show which number should not be used, because it would result in the Secret and the Encrypted Secret being the same.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section: Chapter Questions
Problem 14PP
Related questions
Question
1- A simple encryption method is being used to encrypt a small number (called the secret number). The method by which this encryption works is as follows: I. Choose a random seed number II. Calculate the key by multiplying the seed with the secret under modulus 7 III. Finally, multiply the key with the secret to get the encrypted secret Example: If our secret number was 45Randomly choose seed = 6 key = secret x seed (mod 7) = 45 x 6 (mod 7) = 4Encrypted Secret = key x secret = 45 x 4 = 180 Based on this encryption method, when choosing the random seed, show which number should not be used, because it would result in the Secret and the Encrypted Secret being the same. |
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr