com.eurotech.framework.core.util
Class CryptoUtil
java.lang.Object
com.eurotech.framework.core.util.CryptoUtil
public class CryptoUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoUtil
public CryptoUtil()
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.