|
|
@ -16,7 +16,7 @@ public class EncFactory {
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
String securityKey = "NBPLUS"; // 加密秘钥
|
|
|
|
String securityKey = "NBPLUS"; // 加密秘钥
|
|
|
|
String data = "fq3gG@Ep"; // 需要加密的字符串
|
|
|
|
String data = "123456"; // 需要加密的字符串
|
|
|
|
|
|
|
|
|
|
|
|
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
|
|
|
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
|
|
|
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
|
|
|
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
|
|
|