Class cryptix.pgp_examples.KeyGen
All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.pgp_examples.KeyGen
java.lang.Object
|
+----cryptix.pgp_examples.KeyGen
- public class KeyGen
- extends Object
- implements RSAKeyGenObserver
-
in
-
-
out
-
-
KeyGen()
-
-
KeyGen(InputStream, PrintStream)
-
-
begin()
-
-
getKey(int, RandomStream)
-
-
getKeyLength()
-
-
getPassphrase()
- WARNING this prints the passphrase out on to the screen.
-
getRandomStream(int)
- This is NOT VERY SECURE as the seed is rather simplistic.
-
getUserName()
-
-
handleEvent(int)
-
-
main(String[])
-
in
protected DataInputStream in
out
protected PrintStream out
KeyGen
public KeyGen(InputStream in0,
PrintStream out0)
KeyGen
public KeyGen()
main
public static void main(String argv[])
begin
protected final void begin()
getKey
protected SecretKey getKey(int length,
RandomStream rs)
getUserName
protected String getUserName() throws IOException
getKeyLength
protected int getKeyLength() throws IOException
getRandomStream
protected RandomStream getRandomStream(int keyLength) throws IOException
- This is NOT VERY SECURE as the seed is rather simplistic.
getPassphrase
protected String getPassphrase() throws IOException
- WARNING this prints the passphrase out on to the screen.
handleEvent
public void handleEvent(int evnt)
All Packages Class Hierarchy This Package Previous Next Index