| 程序包 | 说明 |
|---|---|
| bee.tool.string |
| 限定符和类型 | 字段和说明 |
|---|---|
RSA.PubKey |
RSA.Key.publicKey
公钥
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RSA.PubKey |
RSA.fromPubKey(java.lang.String pubKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
RSA.decrypt(RSA.PubKey key,
java.lang.String data)
公钥解密,只能解密对应私钥加密的字符串
|
static java.lang.String |
RSA.encode(RSA.PubKey key,
java.lang.String data)
公钥加密,加密结果需要对应的私钥解密
|