public class EncryptUtil
extends java.lang.Object
| 构造器和说明 |
|---|
EncryptUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decryptAES(byte[] content,
byte[] pwd) |
static byte[] |
decryptBase64(byte[] content) |
static byte[] |
decryptDES(byte[] content,
byte[] pwd) |
static byte[] |
decryptRSAByPrivateKey(byte[] content,
byte[] privateKey) |
static byte[] |
decryptRSAByPublicKey(byte[] content,
byte[] publicKey) |
static byte[] |
encryptAES(byte[] content,
byte[] pwd) |
static byte[] |
encryptBase64(byte[] content) |
static byte[] |
encryptDES(byte[] content,
byte[] pwd) |
static byte[] |
encryptRSAByPrivateKey(byte[] content,
byte[] privateKey) |
static byte[] |
encryptRSAByPublicKey(byte[] content,
byte[] publicKey) |
static byte[] |
getMD5(byte[] content) |
static byte[] |
getRSAPrivateKey(java.util.Map<java.lang.String,java.security.interfaces.RSAKey> keyMap) |
static byte[] |
getRSAPublicKey(java.util.Map<java.lang.String,java.security.interfaces.RSAKey> keyMap) |
static byte[] |
getSHA256(byte[] content) |
static byte[] |
getSHA512(byte[] content) |
static java.util.Map<java.lang.String,java.security.interfaces.RSAKey> |
initRSAKeys() |
static byte[] |
signRSA(byte[] content,
byte[] privateKey) |
static boolean |
verifyRSASign(byte[] content,
byte[] publicKey,
byte[] sign) |
public static byte[] getSHA256(@NonNull
byte[] content)
public static byte[] getMD5(@NonNull
byte[] content)
public static byte[] getSHA512(@NonNull
byte[] content)
public static byte[] encryptBase64(@NonNull
byte[] content)
public static byte[] decryptBase64(@NonNull
byte[] content)
public static byte[] encryptDES(@NonNull
byte[] content,
@NonNull
byte[] pwd)
public static byte[] decryptDES(@NonNull
byte[] content,
@NonNull
byte[] pwd)
public static byte[] encryptAES(@NonNull
byte[] content,
@NonNull
byte[] pwd)
public static byte[] decryptAES(@NonNull
byte[] content,
@NonNull
byte[] pwd)
public static java.util.Map<java.lang.String,java.security.interfaces.RSAKey> initRSAKeys()
public static byte[] signRSA(byte[] content,
byte[] privateKey)
public static boolean verifyRSASign(byte[] content,
byte[] publicKey,
byte[] sign)
public static byte[] decryptRSAByPrivateKey(byte[] content,
byte[] privateKey)
public static byte[] decryptRSAByPublicKey(byte[] content,
byte[] publicKey)
public static byte[] encryptRSAByPublicKey(byte[] content,
byte[] publicKey)
public static byte[] encryptRSAByPrivateKey(byte[] content,
byte[] privateKey)
public static byte[] getRSAPublicKey(java.util.Map<java.lang.String,java.security.interfaces.RSAKey> keyMap)
public static byte[] getRSAPrivateKey(java.util.Map<java.lang.String,java.security.interfaces.RSAKey> keyMap)