public class DefaultPasswordProcessor extends Object implements IPasswordProcessor
Constructor and Description |
---|
DefaultPasswordProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String target)
字符串解密
|
String |
encrypt(String source)
字符串加密
|
String |
getPassKey()
获取加/解密密钥
|
void |
setPassKey(String passKey)
设置加/解密密钥, 若为未提供则采用默认
|
public void setPassKey(String passKey)
IPasswordProcessor
setPassKey
in interface IPasswordProcessor
passKey
- 加/解密KEYpublic String getPassKey()
IPasswordProcessor
getPassKey
in interface IPasswordProcessor
public String encrypt(String source) throws Exception
IPasswordProcessor
encrypt
in interface IPasswordProcessor
source
- 源字符串Exception
- 可能产生的异常public String decrypt(String target) throws Exception
IPasswordProcessor
decrypt
in interface IPasswordProcessor
target
- 目标字符串Exception
- 可能产生的异常Copyright © 2022. All rights reserved.