Question

To encrypt 3 KB of plain-text using a One Time Pad encryption algorithm, how long a...

To encrypt 3 KB of plain-text using a One Time Pad encryption algorithm, how long a truly random key would be required?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

One Time Pad Encryption algorithm needs a Random key at least as the Message or the data that is to be encrypted. Here the message is given as 3 Kb of plain text.

But the length of key depends on the characters not on the size. For example if the 3 Kb plain text file is encoded using

(i)ASCII: The message file of 3Kb has (3*1000)=3000 or  characters , so a random key of atleast 3000 characters is needed

(ii)UCS-4 encoding:There can be nearly 3000/4 = 750 characters accommodated in a 3Kb unicode UCS-4 encoded file. So the Random key has to be atleast of 750 characters

(iii) UTF-8 encoding: This is a more complex encoding scheme where we cannot simply draw an approximation. It varies according to the language in which the message is present. As the mandarin may have more than 1 lakh characters and Japanese has more than 4000 characters in alphabet. So it can take 8 bytes to store a character sometimes

Similarly UTF 16 encoding can take 4 bytes to store a character

Therefore a Plain text file of 3 KB can vary from 400 to 3000 characters long depending on encoding

Add a comment
Know the answer?
Add Answer to:
To encrypt 3 KB of plain-text using a One Time Pad encryption algorithm, how long a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Encrypt the plain text message NUM THY IS QUE OF MATH using RSA algorithm with key...

    Encrypt the plain text message NUM THY IS QUE OF MATH using RSA algorithm with key (n, k)= (1643, 223). What is the recovery exponent for the crypto system? Assume that digit equivalence of the alphabets that A = 01, B = 02, ..., Y=25, Z = 26, space = 00

  • QUESTION 2 Given random number 10010110, encrypt plain text 11111101 using steam cipher.

    QUESTION 2 Given random number 10010110, encrypt plain text 11111101 using steam cipher.

  • the w 2. This problem explores the use of a one-time pad version of t In...

    the w 2. This problem explores the use of a one-time pad version of t In this scheme, the key is a stream of random numbers between 0 and example, if the key is 3 19 5..., then the first letter of plaintext is encrypted with a shift of 3 letters, the second with a shift of 19 letters, the third with a shift of 5 letters, and so on. a. Encrypt the plaintext sendmoremoney with the key stream 9...

  • 1.     This project will extend Project 3 and move the encryption of a password to a...

    1.     This project will extend Project 3 and move the encryption of a password to a user designed class. The program will contain two files one called Encryption.java and the second called EncrytionTester.java. 2.     Generally for security reasons only the encrypted password is stored. This program will mimic that behavior as the clear text password will never be stored only the encrypted password. 3.     The Encryption class: (Additionally See UML Class Diagram) a.     Instance Variables                                                i.     Key – Integer...

  • You are required to write a program that will emulate the One Time Pad implementing the...

    You are required to write a program that will emulate the One Time Pad implementing the Vernam cipher. Your program should allow one side to produce a one-time pad randomly using a specific seed value that will call a pseudo-random number generator function a number of times (say 16 times to generate 16 characters) to produce the one-time pad. Thus, the program should read a text and encrypt it 16 characters at a time using the produced pad, then send...

  • How to encrypt a string in C. I am using RSA encryption. I have a public...

    How to encrypt a string in C. I am using RSA encryption. I have a public and private key already. Public Key is (3,319) and private is (187,319) I have a string that says "I want to buy a gift". The person im sending this message to already has my public key. In C, how do encrpyt the string with my private key before I send it

  • Create a one time pad encryption using chat-server so that two clients are communicating through a...

    Create a one time pad encryption using chat-server so that two clients are communicating through a server sending private encrypted messages (button) and each have the ability to decrypt (button) the message. JAVA PLEASE

  • Describe how an attacker can obtain the one-time pad that is used to encrypt a message,...

    Describe how an attacker can obtain the one-time pad that is used to encrypt a message, given both the message and the ciphertext, and explain why your method works. Suppose that two equal-sized messages M1 and M2 are encrypted with the same one-time pad and let C1 and C2 be the resulting ciphertexts. Suppose further that an attacker captures both ciphertexts C1 and C2, and knows one of the two messages, say M1. Based on Part a), describe how the...

  • MASM Assembly language -- Message Encryption Pgm You are to write a program to input a...

    MASM Assembly language -- Message Encryption Pgm You are to write a program to input a text and a key and encrypt the text. I will supply you an encryption key consisting of multiple characters. Use this key to encrypt and decrypt the plain text by XOR-ing each character of the key against a corresponding byte in the message. Repeat the key as many times as necessary until all plain text bytes are translated. Suppose, for example, the key were...

  • Perform encryption and decryption using the RSA algorithm, for the following p = 3, 9 =...

    Perform encryption and decryption using the RSA algorithm, for the following p = 3, 9 = 11, e = 7 M = 5 What is the public key PU? What is the private key PR? What is the cipertext C? How does the decryption to covert the ciphertext back to the plaintext M?

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT