com.eurotech.framework.core.util
Class CryptoUtil

java.lang.Object
  extended by com.eurotech.framework.core.util.CryptoUtil

public class CryptoUtil
extends Object


Constructor Summary
CryptoUtil()
           
 
Method Summary
static String decodeBase64(String encodedValue)
           
static String decryptAes(String encryptedValue)
           
static String encodeBase64(String stringValue)
           
static String encryptAes(String value)
           
static String sha1Hash(String s)
           
 
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

encryptAes

public static String encryptAes(String value)
                         throws NoSuchAlgorithmException,
                                NoSuchPaddingException,
                                InvalidKeyException,
                                IllegalBlockSizeException,
                                BadPaddingException
Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
IllegalBlockSizeException
BadPaddingException

decryptAes

public static String decryptAes(String encryptedValue)
                         throws NoSuchAlgorithmException,
                                NoSuchPaddingException,
                                InvalidKeyException,
                                IOException,
                                IllegalBlockSizeException,
                                BadPaddingException
Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
IOException
IllegalBlockSizeException
BadPaddingException

sha1Hash

public static String sha1Hash(String s)
                       throws NoSuchAlgorithmException,
                              UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
UnsupportedEncodingException

encodeBase64

public static String encodeBase64(String stringValue)
                           throws NoSuchAlgorithmException,
                                  UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
UnsupportedEncodingException

decodeBase64

public static String decodeBase64(String encodedValue)
                           throws NoSuchAlgorithmException,
                                  UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
UnsupportedEncodingException


Copyright © 2013. All Rights Reserved.