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?
closed as off-topic by fgrieu, hunter, DrLecter, figlesquidge, rath Feb 5 at 14:13
- This question does not appear to be about cryptography within the scope defined in the help center.
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.