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: ⦁ Choose a random seed number ⦁ Calculate the key by multiplying the seed with the secret under modulus 7 ⦁ Finally, multiply the key with the secret to get the encrypted secret Example: If our secret number was 45 Randomly choose seed = 6 key = secret x seed (mod 7) = 45 x 6 (mod 7) = 4 Encrypted 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
Dears I need an answer in Probability/Math way not codding way :
⦁ 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:
⦁ Choose a random seed number
⦁ Calculate the key by multiplying the seed with the secret under modulus 7
⦁ Finally, multiply the key with the secret to get the encrypted secret
Example:
If our secret number was 45
Randomly choose seed = 6
key = secret x seed (mod 7) = 45 x 6 (mod 7) = 4
Encrypted 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
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images