crypto
Class KeyCreator

java.lang.Object
  extended bycrypto.KeyCreator

public class KeyCreator
extends java.lang.Object

Class to generate encryption keys

Author:
cooperse See the Java architecture docs

Constructor Summary
KeyCreator()
           
 
Method Summary
static java.security.Key generateKey()
          Generate a random 56-bit DES symmetric key
static java.security.KeyPair generateKeyPair(long userSeed)
          Creates a public-private key pair based on the supplied seed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyCreator

public KeyCreator()
Method Detail

generateKeyPair

public static java.security.KeyPair generateKeyPair(long userSeed)
Creates a public-private key pair based on the supplied seed

Returns:
A KeyPair of the generated keys.

generateKey

public static java.security.Key generateKey()
Generate a random 56-bit DES symmetric key

Returns:
The DES Key object