| java.lang.Object com.quadcap.crypto.KeyFactory
KeyFactory | public class KeyFactory (Code) | | A simple key factory to localize the (hardcoded) choice of ciphers.
author: Stan Bailes |
bytesFromPassphrase | public static byte[] bytesFromPassphrase(int len, String passphrase)(Code) | | Make the passphrase into a fixed size byte array with smearing
|
createSymmetricKey | public static SymmetricKey createSymmetricKey(Random r)(Code) | | Create a symmetric key using the specified random number generator
and the default symmetric key algorithm
|
createSymmetricKey | public static SymmetricKey createSymmetricKey(String passphrase)(Code) | | Create a symmetric key seeded with the specified pass phrase
This fellow creates a Rijndael 128 bit key
|
createSymmetricKey | public static SymmetricKey createSymmetricKey(String algo, String passphrase)(Code) | | Create a symmetric key from an algorithm specification and a pass
phrase.
|
readPrivateKey | public static PrivateKey readPrivateKey(String s)(Code) | | Restore a private key from its serialized form
|
readPublicKey | public static PublicKey readPublicKey(String s)(Code) | | Restore a public key from its serialized form
|
readSymmetricKey | public static SymmetricKey readSymmetricKey(String s)(Code) | | Restore a symmetric key from its serialized form
|
|
|