edu.ucla.stat.SOCR.servlet.util
Class CryptoUtil

java.lang.Object
  extended by edu.ucla.stat.SOCR.servlet.util.CryptoUtil

public class CryptoUtil
extends java.lang.Object


Constructor Summary
CryptoUtil()
           
 
Method Summary
static java.lang.String decrypt(byte[] input, java.security.Key key)
           
static java.lang.String encrypt(java.lang.String input, java.security.Key key)
           
static java.security.Key generateKey()
           
static java.lang.String generatePublicKey()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoUtil

public CryptoUtil()
Method Detail

main

public static void main(java.lang.String[] args)

generateKey

public static java.security.Key generateKey()

encrypt

public static java.lang.String encrypt(java.lang.String input,
                                       java.security.Key key)

decrypt

public static java.lang.String decrypt(byte[] input,
                                       java.security.Key key)

generatePublicKey

public static java.lang.String generatePublicKey()