Constructor and Description |
---|
DefaultEncryptor(String encryptKey)
Instantiates a new Default encryptor.
|
Modifier and Type | Method and Description |
---|---|
String |
encrypt(String sourceContent,
String encryptType,
String charset)
对内容加密
|
String |
getEncryptKey()
Getter method for property encryptKey.
|
void |
setEncryptKey(String encryptKey)
Setter method for property encryptKey.
|
public DefaultEncryptor(String encryptKey)
encryptKey
- the encrypt keypublic String encrypt(String sourceContent, String encryptType, String charset)
Encryptor
public String getEncryptKey()
public void setEncryptKey(String encryptKey)
encryptKey
- value to be assigned to property encryptKeyCopyright © 2018. All rights reserved.