public interface Provider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(String key,
byte[] content)
数据解密
1.
|
byte[] |
encrypt(String key,
byte[] content)
数据加密
1.
|
byte[] encrypt(String key, byte[] content)
key - 密钥,字符串,分割
示例: 5c3,5c3,PrivateKeycontent - 需要加密的内容byte[] decrypt(String key, byte[] content)
key - 密钥, 字符串使用,分割
格式: 私钥,公钥,类型
示例: 5c3,5c3,PrivateKey
1. 私钥加密,公钥解密
2. 公钥加密,私钥解密content - 需要解密的内容Copyright © 2021. All rights reserved.