com.jaxfront.core.util
Class KeyCoder

java.lang.Object
  extended by com.jaxfront.core.util.KeyCoder

public class KeyCoder
extends java.lang.Object


Constructor Summary
KeyCoder()
           
 
Method Summary
static java.lang.String createHEXKey()
           
static byte[] createKey()
           
static byte[] createKey(java.lang.String method, int keySize)
           
static java.lang.String decode(byte[] key, byte[] encryptedBytes)
           
static java.lang.String decode(java.lang.String key, java.lang.String encryptedBytes)
           
static byte[] encode(byte[] key, java.lang.String text)
           
static byte[] encode(java.lang.String key, java.lang.String text)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyCoder

public KeyCoder()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.security.NoSuchAlgorithmException,
                        java.io.FileNotFoundException,
                        java.io.IOException
Throws:
java.security.NoSuchAlgorithmException
java.io.FileNotFoundException
java.io.IOException

decode

public static java.lang.String decode(byte[] key,
                                      byte[] encryptedBytes)

decode

public static java.lang.String decode(java.lang.String key,
                                      java.lang.String encryptedBytes)

encode

public static byte[] encode(byte[] key,
                            java.lang.String text)

encode

public static byte[] encode(java.lang.String key,
                            java.lang.String text)

createHEXKey

public static java.lang.String createHEXKey()

createKey

public static byte[] createKey()
                        throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

createKey

public static byte[] createKey(java.lang.String method,
                               int keySize)
                        throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException