public class RSAUtils extends Object
| Constructor and Description |
|---|
RSAUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeOpenSSLPublicKey(String instr) |
static byte[] |
decrypt(byte[] content,
PrivateKey privateKey) |
static byte[] |
encrypt(byte[] content,
PublicKey publicKey) |
static byte[] |
encryptByPublicKey(byte[] data,
PublicKey pk) |
static PublicKey |
getPublicKey(String keyCode) |
public static PublicKey getPublicKey(String keyCode) throws IOException
IOExceptionpublic static byte[] decodeOpenSSLPublicKey(String instr)
public static byte[] encryptByPublicKey(byte[] data,
PublicKey pk)
throws IOException
IOExceptionpublic static byte[] encrypt(byte[] content,
PublicKey publicKey)
throws IOException
IOExceptionpublic static byte[] decrypt(byte[] content,
PrivateKey privateKey)
throws IOException
IOExceptionCopyright © 2019 DolphinDB. All rights reserved.