public class RSAUtils extends Object
Created by Roney on 2020/12/25
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
KEY_ALGORITHM
encryption algorithm RSA
|
| 构造器和说明 |
|---|
RSAUtils() |
public static byte[] encrypt(byte[] data,
String publicKey,
int maxEncryptBlock)
data - datapublicKey - publicKeymaxEncryptBlock - maxEncryptBlockpublic static byte[] decrypt(byte[] text,
String privateKey,
int maxDecryptBlock)
text - textprivateKey - privateKeymaxDecryptBlock - maxDecryptBlockCopyright © 2024. All rights reserved.