public class SimpleDecryptor extends Object implements Decryptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
secret |
| 构造器和说明 |
|---|
SimpleDecryptor() |
SimpleDecryptor(byte[] secret) |
SimpleDecryptor(String secret) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] cipherBytes)
解密
|
byte[] |
decrypt(byte[] secretBytes,
byte[] cipherBytes)
解密
|
String |
decrypt(String cipherText)
解密
|
String |
decrypt(String secret,
String cipherText)
解密
|
protected byte[] |
doDecrypt(byte[] secretBytes,
byte[] cipherBytes) |
protected void |
doInit(byte[] secret) |
void |
init(String secret)
初始化
|
public SimpleDecryptor()
public SimpleDecryptor(byte[] secret)
public SimpleDecryptor(String secret)
protected void doInit(byte[] secret)
public byte[] decrypt(byte[] cipherBytes)
Decryptorpublic byte[] decrypt(byte[] secretBytes,
byte[] cipherBytes)
Decryptorprotected byte[] doDecrypt(byte[] secretBytes,
byte[] cipherBytes)
Copyright © 2024. All rights reserved.