Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: One-Time Pad software? |
|---|---|
| Date: | Fri, 02 Feb 2007 20:11:00 +0100 |
FocusHacks wrote: > I am looking for software implementations of one-time pad encryption. > Ideally, these would be cross platform, and command line open-source > would be even better.
Optionally, it would be nice if it had the ability to use multiple "pages" (blocks, files, whatever) of a pad when the file in question is larger than one piece of the pad. For instance, if your "pad" consisisted of many 20k binary files full of pseudo-random data, and you wished to encrypt a 3 megabyte file, it would use as many sequential pad files as needed, as opposed to "looping" one of the
pad files to meet the demand.
Any reasonable implementation of a one-time pad crypto would enforce this "optional" feature, i.e. NEVER use the same pad twice (especially not within the same cryptogram!). After all, there is a reason why it's called a ONE-TIME pad. Reusing the key pads (or "looping" them) breaks the crypto and makes crypto analysis a breeze.
This is then reapeated three more times so "that" has taken every possible position in the first 20K of the cryptogram by displacing it one character to the right each time, i.e. using the following guessed plain-texts: "_thatthat...", "__thatthat..." and "___thatthat...". Of course, this will generate some false positives when the guessed keys seem to decrypt into some readable sequences but only does so by chance. However, if reapeted with more common words (like "was", "and", "you" etc), and if the readable sequences gained by using the guessed keys are expanded through analysis of their context (e.g. if the guessed key generates "g2DryptogaI4lAv" from some part of the cryptogram he can guess that the real plain-text is "g2cryptogramlAv" or "g2cryptographyv" etc) such faults will be detected as well as more parts of the real key and real plain-text are being approximated.
Never reuse your one time pads!
PS. There are algorithms that reuse the key pads by mixing them with the crytptext in arcane ways and still retaining strong protection against the above described crypto analysis. However, these algoritms does not keep the rather nice perfect secrecy property of properly used one-time pads. One might just as well use AES, twofish, RSA or any other decent crypto instead.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Changing the domain password policy, krymson |
|---|---|
| Next by Date: | Re: Changing the domain password policy, Mike Devlin |
| Previous by Thread: | Re: One-Time Pad software?, Thierry Zoller |
| Next by Thread: | Re: One-Time Pad software?, Atom Smasher |
| Indexes: | [Date] [Thread] [Top] [All Lists] |