1
$\begingroup$

I am studying one time pad and find it hard to understand. What happens if the key is one bit or 100 bits shorter than the message?

$\endgroup$
2
  • 5
    $\begingroup$ Welcome to CSE, but sorry: that question is too trivial for our standards; and also is a mild form of this one and that one. Some food for thought: Does your definition of the OTP define the ciphertext for the plaintext beyond the key size? If not, is not that reason enough? Otherwise, how is that ciphertext defined? And assume you know the beginning of the plaintext, over the length of the key. $\endgroup$
    – fgrieu
    Feb 5, 2014 at 12:23
  • $\begingroup$ Then you will be sending one or 100 unencrypted bits. $\endgroup$ Jul 14, 2016 at 17:41

1 Answer 1

2
$\begingroup$

If you using in one time pad key shorter then message, it means that some part of text will be encrypted with same part of key, two or more time. In this case, XORing two part encrypted with same key, adversary can receive few information about plaintext. If key significantly shorter then plaintext, adversary can apply frequency analysis to discover whole message, or part of it.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.