public final class RSA
extends java.lang.Object
| Constructor and Description |
|---|
RSA() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] modBytes,
byte[] expBytes,
byte[] data)
Decrypt data
|
static byte[] |
encrypt(byte[] modBytes,
byte[] expBytes,
byte[] data)
Encrypt data
|
static byte[] |
signSHA256(byte[] modBytes,
byte[] expBytes,
byte[] data)
Sign SHA256 with RSA.
|
public static byte[] encrypt(byte[] modBytes,
byte[] expBytes,
byte[] data)
modBytes - key module bytes.expBytes - key exponents bytes.data - the data.public static byte[] decrypt(byte[] modBytes,
byte[] expBytes,
byte[] data)
modBytes - key module bytes.expBytes - key exponents bytes.data - the data.public static byte[] signSHA256(byte[] modBytes,
byte[] expBytes,
byte[] data)
modBytes - key module bytes.expBytes - key exponents bytes.data - the data.