You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- To clarify where you were not sure what I was talking about "how much data it takes before the key runs out": I was really not knowing where to go, but I understand that if I have 1KB of data and a 1KB key, then it is impossible to decrypt. Only by re-use of the key is it possible to decrypt. However, I missed the point. If I used up a 1KB key, there is no way to pass a new one except by re-using the last one. A way to resolve this might be to do some weird stuff with key rotation, but then again, it may not be worth while. Also, I don't yet understand what IV and Nonce are.700 Software– 700 Software2011-07-19 15:54:12 +00:00Commented Jul 19, 2011 at 15:54
- By impossible to decrypt I mean, by brute force you could find a possible decrypted copy, but with a little more brute force you would find another possible copy, repeatedly. The only clue that you would have found the right one is the length of the file. And knowing the content is, say, 1019 bytes long is not going to give you much of a clue as to which possibility is correct.700 Software– 700 Software2011-07-19 16:02:11 +00:00Commented Jul 19, 2011 at 16:02
- Your first describes a one-time pad. A one time pad has no cryptographic weakness, and is often described as unbreakable. For a one-time pad to work the key must be as long or longer than the data. Additionally the key, or any significant piece of the key must never be reused. In order to use a one-time pad, both send and receiver must have identical copies of a set of keys. If they run out of keys they must arange to meet and create a new set. The requirement to generate a large number of keys and then meet securely to synchronize the keys means one-time pads are infrequently used.this.josh– this.josh2011-07-19 16:26:02 +00:00Commented Jul 19, 2011 at 16:26
- Most encryption systems use small (when compared to the data) keys. In one-time pad the algorithm is trivial, in more common encryption the algorithms are complex. The algorithm allows us to take a fixed size key and use it to encrypt an arbitrarly long piece of data. So, in more common encryption, the length of the data doesn't prevent encryption. Also more brute force is not meaningful. Brute force means the process of trying every possible key. There are no more keys than every possible key.this.josh– this.josh2011-07-19 16:34:16 +00:00Commented Jul 19, 2011 at 16:34
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. web-application), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you