Question: In your project you will simulate a technique called One-time Pad. From Wikipedia: In cryptography, the one-time pad (OTP) is an encryption technique that cannot

In your project you will simulate a technique called One-time Pad. From Wikipedia: In cryptography, the one-time pad (OTP) is an encryption technique that cannot be cracked if used correctly. In this technique, a plaintext is paired with a random secret key (also referred to as a one-time pad). Then, each bit or character of the plaintext is encrypted by combining it with the corresponding bit or character from the pad using modular addition. If the key is truly random, is at least as long as the plaintext, is never reused in whole or in part, and is kept completely secret, then the resulting cyphertext will be impossible to decrypt or break. Since it is not practical to use true one-time pads we will simulate them using a random number generator. Note that this technique is not necessarily very secure, but it will serve to illustrate the approach. In our case we are interested in characters \t, (numerical codes 9 and 10) and Space through (numerical codes 32 through 126). Therefore, there are 97 displayable characters (if we count white space characters as displayable). If you use 0 to represent \t, 1 to re

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!