public final class RsaEncipher extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decryptByPrivateKey(byte[] ciphertext,
byte[] privateKey) |
byte[] |
decryptByPublicKey(byte[] ciphertext,
byte[] publicKey) |
byte[] |
encryptByPrivateKey(byte[] plaintext,
byte[] privateKey) |
byte[] |
encryptByPublicKey(byte[] plaintext,
byte[] publicKey) |
static RsaEncipher |
getInstance() |
static RsaEncipher |
getInstance(int keySize) |
KeyPair |
getKeyPair() |
void |
initKeyPair() |
void |
initKeyPair(int keySize) |
public void initKeyPair(int keySize)
public void initKeyPair()
public static RsaEncipher getInstance(int keySize)
public static RsaEncipher getInstance()
public byte[] encryptByPublicKey(byte[] plaintext,
byte[] publicKey)
public byte[] decryptByPrivateKey(byte[] ciphertext,
byte[] privateKey)
public byte[] encryptByPrivateKey(byte[] plaintext,
byte[] privateKey)
public byte[] decryptByPublicKey(byte[] ciphertext,
byte[] publicKey)
public KeyPair getKeyPair()
Copyright © 2022. All rights reserved.