3 ms·
One single, lonely piece of ciphertext is probably perfectly safe. Home-brew encryption becomes a problem when arbitrary plain-text can be enciphered. Then you
by ColinWright 14y ago
One single, lonely piece of ciphertext is probably perfectly safe. Home-brew encryption becomes a problem when arbitrary plain-text can be enciphered. Then you get differential analysis, and you risk exposing the algorithm.
This isn't worth anyone's time to play with, and I'm sure you'll end up with a feeling that it's secure.
Deploy it, use it. Then details of the algorithm will leak, multiple cipher-texts will be available, and that's when you'll have problems. Besides, if no one except you uses it, it's probably secure enough. Letting someone else use it means exposing the algorithm. Then you'll have trouble.
- cool-RR 14y agoI will never use it for anything, if that wasn't obvious. It's just an exercise.
- ColinWright 14y agoBut that's the point. If you use it, the method will leak, and people will get multiple texts, and then there's a chance to break it. The weaknesses will be exposed. With a single, short piece of cipher-text (a) no one will care, and (b) it's probably safe enough. You're not learning anything by doing this, but you might think you are. That's the problem.
- kedean 14y agoIt would be a better excercise if multiple ciphertexts from the same key were posted, as well as some ciphertexts from different keys. That would simulate real world interaction with the output of an encryption scheme.