public class EncryptCommon extends Object
| 构造器和说明 |
|---|
EncryptCommon() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
asymDecrypt(byte[] cipher,
byte[] privateKey) |
static byte[] |
asymDecrypt(byte[] cipher,
byte[] privateKey,
boolean bSM) |
static byte[] |
asymEncrypt(byte[] plainBytes,
byte[] publicKey) |
static byte[] |
sm4Decrypt(byte[] cipherText,
byte[] password)
sm4 decrypt
|
static byte[] |
sm4Encrypt(byte[] plainBytes,
byte[] password)
sm4 encrypt
|
static byte[] |
symDecrypt(byte[] cipherText,
byte[] password) |
static String |
symDecrypt(String cipherText,
String password) |
static byte[] |
symEncrypt(byte[] plainBytes,
byte[] password) |
static byte[] |
symEncrypt(byte[] plainBytes,
byte[] password,
boolean bSM) |
static String |
symEncrypt(String plainBytes,
String password) |
public static byte[] asymEncrypt(byte[] plainBytes,
byte[] publicKey)
public static byte[] asymDecrypt(byte[] cipher,
byte[] privateKey,
boolean bSM)
public static byte[] asymDecrypt(byte[] cipher,
byte[] privateKey)
public static byte[] sm4Encrypt(byte[] plainBytes,
byte[] password)
plainBytes - password - public static byte[] sm4Decrypt(byte[] cipherText,
byte[] password)
cipherText - password - public static byte[] symEncrypt(byte[] plainBytes,
byte[] password,
boolean bSM)
public static byte[] symEncrypt(byte[] plainBytes,
byte[] password)
public static byte[] symDecrypt(byte[] cipherText,
byte[] password)
Copyright © 2021. All rights reserved.