Re: Looking for One Time Pad Software, small with gui for WIN.

From: Andrew Swallow (am.swallow_at_eatspam.btinternet.com)
Date: 01/08/04


Date: Thu, 8 Jan 2004 20:28:14 +0000 (UTC)


"Anna" <nospam@spamplease.com> wrote in message
news:Xns946AC5534EC16AnNA@194.97.5.8...
[snip]
> Why should I make a joke?- it is just that I want to understand the way it
> works, thats all. As my company is working on security, my aim is to have
a
> small software for windows platform where I can see the result and study
> it.
> It is not funny at all to ask if someone know any kind of small freeware
> available for win with a simple gui.
>
A One time Pad program is about 10 lines long. Something
that could be written in a morning.

The program would open two input files.
File One contains the plain text you want to hide.
File Two contains the large random key stream.

The program opens an output file.
File Three will contain the encrypted data.

Start_Loop
      A byte is read from both File One and File Two.
     The two bytes are added together and written to File Three.
Repeat until the end of File One.

Close all files.
End.

The addition is Exclusive Or rather the normal add because it
allows the same program to be used for decryption.
The big problem with One Time Pad is getting a genuine random
key stream for File Two.

Andrew Swallow


Quantcast