An actionlistener for the encrypt/decrypt button
This checks that all the files are valid
and then starts decryption using SwingWorker
since this will make the progressbar update.
A actionlistener for the Make Key button
wich checks that the keylength is a valid number,
and that the file is writeable, then generates the key using
KeyGenerator.ToFileThread()
A actionlistener for the Make Key button
wich checks that the keylength is a valid number,
and that the file is writeable, then generates the key using
KeyGenerator.ToFileThread()
javaPad.java
Java implementation of the "one touch pad" encryption algorithm
This class encrypts plaintextfiles using a private key
and decrypts encrypted files with a key.
This inner class can be used by programs wich wants a
progessbars, or wants to run the process as a thread
The Thread version must be used like this:
KeyGenerator outerClass = new KeyGenerator();
KeyGenerator.ToFileThread keyGenerator = null;
keyGenerator = outerClass.
makeKey.java
Textmode frontend to KeyGenerator
Generates a keyfile, while
This version is for textmode, see SMakeKey for a swing version
This class also has a method for generating keys from other
applications.
PadInputStream.java
Stream that gets data from specified inputStream
(first argument to constructor)
and decrypts (or encrypts) it with the keyfile
(second arguemnt to constructor)
PadOutputStream.java
Stream that encrypts the arguments of write() with
the key given as second argument, and sends the output to
any OutputStream wich is the first argument (constructor)
This inner class can be used by programs wich wants a
progessbars, or wants to run the process as a thread
The Thread version must be used like this:
PassPhrase outerClass = new PassPhrase();
PassPhrase.PassPhraseToFileThread passPhraser = null;
passPhraser = outerClass.
SecureTalkClient.java
Toy app, that reads a string, encrypts it and send it to SecureTalkClient
over a network socket, this program is an example of how to use PadStreams.
This is the 3rd version of SwingWorker (also known as
SwingWorker 3), an abstract class that you subclass to
perform GUI-related work in a dedicated thread.