public class SimpleEncryptor extends Object implements Encryptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
secret |
| 构造器和说明 |
|---|
SimpleEncryptor() |
SimpleEncryptor(byte[] secret) |
SimpleEncryptor(String secret) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected byte[] |
doEncrypt(byte[] secretBytes,
byte[] plainBytes) |
protected void |
doInit(byte[] secret) |
byte[] |
encrypt(byte[] plainBytes)
加密
|
byte[] |
encrypt(byte[] secretBytes,
byte[] plainBytes)
加密
|
String |
encrypt(String plainText)
加密
|
String |
encrypt(String secretText,
String plainText)
加密
|
void |
init(String secret)
初始化
|
public SimpleEncryptor()
public SimpleEncryptor(byte[] secret)
public SimpleEncryptor(String secret)
protected void doInit(byte[] secret)
public byte[] encrypt(byte[] plainBytes)
Encryptorpublic byte[] encrypt(byte[] secretBytes,
byte[] plainBytes)
Encryptorprotected byte[] doEncrypt(byte[] secretBytes,
byte[] plainBytes)
Copyright © 2024. All rights reserved.