| Modifier and Type | Field and Description |
|---|---|
static java.security.PrivateKey |
rk |
static java.security.PublicKey |
uk |
| Constructor and Description |
|---|
RSAUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
byte2hex(byte[] b) |
java.lang.String |
decryption(java.lang.String code)
解密
|
java.lang.String |
encryption(java.lang.String code)
加密
|
static byte[] |
hex2byte(byte[] b) |
public static java.security.PublicKey uk
public static java.security.PrivateKey rk
public static java.lang.String byte2hex(byte[] b)
public static byte[] hex2byte(byte[] b)
public java.lang.String encryption(java.lang.String code)
ISecurityencryption in interface ISecuritypublic java.lang.String decryption(java.lang.String code)
ISecuritydecryption in interface ISecurity