|
|
@ -6,7 +6,7 @@ import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
|
|
|
|
public class EncFactory {
|
|
|
|
public class EncFactory {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
String securityKey = "NBPLUS"; // 加密秘钥
|
|
|
|
String securityKey = "NBPLUS"; // 加密秘钥
|
|
|
|
String data = "qwer1234"; // 需要加密的字符串
|
|
|
|
String data = "wangxy123@"; // 需要加密的字符串
|
|
|
|
|
|
|
|
|
|
|
|
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
|
|
|
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
|
|
|
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
|
|
|
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
|
|
|