A C D F G H I J K M P R S T W

A

actionPerformed(ActionEvent) - Method in class SJavaPad
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.
actionPerformed(ActionEvent) - Method in class SMakeKey
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()
actionPerformed(ActionEvent) - Method in class SPassPhrase
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()

C

close() - Method in class PadInputStream
This closes the streams
close() - Method in class PadOutputStream
This closes the streams
construct() - Method in class SwingWorker
Compute the value to be returned by the get method.

D

debug - Variable in class PadOutputStream
Set to true to show debug info

F

finished() - Method in class SwingWorker
Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
flush() - Method in class PadOutputStream
This flushes the stream

G

get() - Method in class SwingWorker
Return the value created by the construct method.
getValue() - Method in class SwingWorker
Get the value produced by the worker thread, or null if it hasn't been constructed yet.

H

HEIGHT - Static variable in class SJavaPad
Height of the swing Frame
HEIGHT - Static variable in class SMakeKey
Height of the swing Frame
HEIGHT - Static variable in class SPassPhrase
Height of the swing Frame

I

interrupt() - Method in class SwingWorker
A new method that interrupts the worker thread.

J

JavaPad - class JavaPad.
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.
JavaPad() - Constructor for class JavaPad
 

K

KeyGenerator - class KeyGenerator.
KeyGenerator.java An object of this class has methods for creating keyfiles for use with "One time pad" encryption.
KeyGenerator.ToFileThread - class KeyGenerator.ToFileThread.
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.
KeyGenerator.ToFileThread(KeyGenerator) - Constructor for class KeyGenerator.ToFileThread
Initializes the KeyGenerator using SUN's SHA1PRNG algorithm
KeyGenerator.ToFileThread(KeyGenerator, String, String) - Constructor for class KeyGenerator.ToFileThread
Initializes the KeyGenerator using specified provider and algorithm
KeyGenerator() - Constructor for class KeyGenerator
Initializes the KeyGenerator using SUN's SHA1PRNG algorithm
KeyGenerator(String, String) - Constructor for class KeyGenerator
Initializes the KeyGenerator using specified provider and algorithm

M

main(String[]) - Static method in class JavaPad
 
main(String[]) - Static method in class MakeKey
 
main(String[]) - Static method in class PassPhrase
 
main(String[]) - Static method in class SJavaPad
Entry point to program, make SMakeKey object hence callign the constructor
main(String[]) - Static method in class SMakeKey
Entry point to program, make SMakeKey object hence callign the constructor
main(String[]) - Static method in class SPassPhrase
Entry point to program, make SPassPhrase object hence callign the constructor
main(String[]) - Static method in class SecureTalkClient
 
main(String[]) - Static method in class SecureTalkServer
 
MakeKey - class MakeKey.
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.
MakeKey() - Constructor for class MakeKey
 

P

PadInputStream - class PadInputStream.
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)
PadInputStream(InputStream, RandomAccessFile) - Constructor for class PadInputStream
Sets the keyfile and InputStream
PadOutputStream - class PadOutputStream.
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)
PadOutputStream(OutputStream, RandomAccessFile) - Constructor for class PadOutputStream
Sets the keyfile and OutputStream
PassPhrase - class PassPhrase.
This program will "one time pad" a file(keyfile) with a string wich will make it safer to have the keyfile on your disk.
PassPhrase.PassPhraseToFileThread - class PassPhrase.PassPhraseToFileThread.
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.
PassPhrase.PassPhraseToFileThread(PassPhrase, String, File) - Constructor for class PassPhrase.PassPhraseToFileThread
Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile
PassPhrase.PassPhraseToFileThread(PassPhrase, String, File, File) - Constructor for class PassPhrase.PassPhraseToFileThread
Initializes the PassPhraseToFileThread object using the specified passphrase and keyfile and the file to put the result in
PassPhrase() - Constructor for class PassPhrase
 
percentComplete - Variable in class KeyGenerator.ToFileThread
Percent complete, for use with progressbars/etc..
percentComplete - Variable in class PassPhrase.PassPhraseToFileThread
 

R

read() - Method in class PadInputStream
This decrypts/encrypts the data from the inputstream with the data from the keyfile and returns the result
read() - Static method in class SavitchIn
Reads the first byte in the input stream and returns that byte as an int.
readChar() - Static method in class SavitchIn
Reads the next input character and returns that character.
readDouble() - Static method in class SavitchIn
Precondition: The next input consists of a double value, possibly preceded by white space, but definitely followed by white space.
readFloat() - Static method in class SavitchIn
Precondition: The next input consists of a float value, possibly preceded by white space, but definitely followed by white space.
readInt() - Static method in class SavitchIn
Precondition: The next input in the stream consists of an int value, possibly preceded by white space, but definitely followed by white space.
readLine() - Static method in class SavitchIn
Reads a line of text and returns that line as a String value.
readLineBoolean() - Static method in class SavitchIn
Input should consists of a single word on a line, possibly surrounded by white space.
readLineDouble() - Static method in class SavitchIn
Precondition: The user has entered a number of type double on a line by itself, except that there may be white space before and/or after the number.
readLineFloat() - Static method in class SavitchIn
Precondition: The user has entered a number of type float on a line by itself, except that there may be white space before and/or after the number.
readLineInt() - Static method in class SavitchIn
Precondition: The user has entered a number of type int on a line by itself, except that there may be white space before and/or after the number.
readLineLong() - Static method in class SavitchIn
Precondition: The user has entered a number of type long on a line by itself, except that there may be white space before and/or after the number.
readLineNonwhiteChar() - Static method in class SavitchIn
Reads the first Nonwhite character on a line and returns that character.
readLineWord() - Static method in class SavitchIn
Reads the first string of nonwhite characters on a line and returns that string.
readLong() - Static method in class SavitchIn
Precondition: The next input consists of a long value, possibly preceded by white space, but definitely followed by white space.
readNonwhiteChar() - Static method in class SavitchIn
Reads the next nonwhite input character and returns that character.
readWord() - Static method in class SavitchIn
Reads the first string of nonwhite characters and returns that string.
run() - Method in class KeyGenerator.ToFileThread
This method will be run by Thread.start() and takes care of the actual key generating proces
run() - Method in class PassPhrase.PassPhraseToFileThread
This method will be called by Thread.start() and does the actual work

S

SavitchIn - class SavitchIn.
Class for simple console input.
SavitchIn() - Constructor for class SavitchIn
 
SecureTalkClient - class SecureTalkClient.
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.
SecureTalkClient() - Constructor for class SecureTalkClient
 
SecureTalkServer - class SecureTalkServer.
SecureTalkServer.java Toy example of a server that decrypts data sent with SecureTalkClient made to show how to create an application with Padstreams.
SecureTalkServer() - Constructor for class SecureTalkServer
 
SJavaPad - class SJavaPad.
SJavaPad.java Encrypts or decrypts a file using a key.
SJavaPad.CryptoWorker - class SJavaPad.CryptoWorker.
class that uses SwingWorker to create a thread that does the actual encryption/decryption
SJavaPad() - Constructor for class SJavaPad
Constructor that makes the GUI, and registers some listeners as inner classes
SMakeKey - class SMakeKey.
SmakeKey.java Generates random characters, used for encryption by javaPad This version uses Swing to give a nice GUI
SMakeKey() - Constructor for class SMakeKey
Constructor that makes the GUI, and registers some listeners as inner classes
SPassPhrase - class SPassPhrase.
SPassPhrase.java This program will "one time pad" a file(keyfile) with a string wich will make it safer to have the keyfile on your disk.
SPassPhrase() - Constructor for class SPassPhrase
Constructor that makes the GUI, and registers some listeners as inner classes
start() - Method in class SwingWorker
Start the worker thread.
SwingWorker - class SwingWorker.
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.
SwingWorker() - Constructor for class SwingWorker
Start a thread that will call the construct method and then exit.

T

toArray(int) - Method in class KeyGenerator
This method generates a key and puts it in a integer array
toArray(String, int[]) - Static method in class PassPhrase
This method will pad a integer array (representing bytes?) the result of this will be a new int array
toFile(File, int) - Method in class KeyGenerator
This method generates a key and puts it in a file
toFile(File, int) - Method in class KeyGenerator.ToFileThread
This method sets the filename and keylength and MUST be called before Thread.start()
toFile(String, File) - Static method in class PassPhrase
This method will pad a keyfile with a passphrase the keyfile will be overwritten by the new passphrased key
toFile(String, int) - Method in class KeyGenerator
This method generates a key and puts it in a file
toFile(String, int) - Method in class KeyGenerator.ToFileThread
This method sets the filename and keylength and MUST be called before Thread.start()
toNewFile(String, File, File) - Static method in class PassPhrase
This method will pad a keyfile with a passphrase the result of this will be put in a new file

W

WIDTH - Static variable in class SJavaPad
Width of the swing Frame
WIDTH - Static variable in class SMakeKey
Width of the swing Frame
WIDTH - Static variable in class SPassPhrase
Width of the swing Frame
write(int) - Method in class PadOutputStream
This encrypts (or decryps) the argument with the keyfile, and sends the result to outputStream

A C D F G H I J K M P R S T W