Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

closed as off-topic by fgrieu, hunter, DrLecter, figlesquidge, rath Feb 5 '14 at 14:13

  • This question does not appear to be about cryptography within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

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. – fgrieu Feb 5 '14 at 12:23

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.

share|improve this answer

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