Package org.ujmp.core.util
Class EncryptionUtil
- java.lang.Object
-
- org.ujmp.core.util.EncryptionUtil
-
public abstract class EncryptionUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]
IV16
-
Constructor Summary
Constructors Constructor Description EncryptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
aesDecrypt(byte[] input, byte[] key)
static byte[]
aesDecrypt(byte[] input, byte[] key, byte[] iv)
static byte[]
aesDecrypt(byte[] input, java.security.Key key)
static byte[]
aesDecrypt(byte[] input, java.security.Key secret, byte[] iv)
static byte[]
aesEncrypt(byte[] input, byte[] key)
static byte[]
aesEncrypt(byte[] input, byte[] key, byte[] iv)
static byte[]
aesEncrypt(byte[] input, java.security.Key key)
static byte[]
aesEncrypt(byte[] input, java.security.Key secret, byte[] iv)
-
-
-
Method Detail
-
aesEncrypt
public static byte[] aesEncrypt(byte[] input, java.security.Key key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesEncrypt
public static byte[] aesEncrypt(byte[] input, byte[] key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesEncrypt
public static byte[] aesEncrypt(byte[] input, byte[] key, byte[] iv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesEncrypt
public static byte[] aesEncrypt(byte[] input, java.security.Key secret, byte[] iv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesDecrypt
public static byte[] aesDecrypt(byte[] input, java.security.Key key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesDecrypt
public static byte[] aesDecrypt(byte[] input, byte[] key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesDecrypt
public static byte[] aesDecrypt(byte[] input, byte[] key, byte[] iv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aesDecrypt
public static byte[] aesDecrypt(byte[] input, java.security.Key secret, byte[] iv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-