重命名加密模块相关代码
This commit is contained in:
@@ -2,14 +2,14 @@ package com.chwl.library.utils.codec;
|
||||
|
||||
|
||||
import com.chwl.library.utils.StringUtils;
|
||||
import com.example.lib_encrypt.EncryptLib;
|
||||
import com.secure.encipher.EncipherLib;
|
||||
|
||||
|
||||
public class DESUtils {
|
||||
|
||||
//客户端加密
|
||||
public static String DESAndBase64Encrypt(String dataToEncrypt) throws Exception {
|
||||
return EncryptLib.INSTANCE.encryptTextDef1(dataToEncrypt);
|
||||
return EncipherLib.INSTANCE.encryptTextDef1(dataToEncrypt);
|
||||
}
|
||||
|
||||
public static String DESAndBase64(String psw) {
|
||||
@@ -25,13 +25,13 @@ public class DESUtils {
|
||||
//服务端解密
|
||||
public static String DESAndBase64Decrypt(String dataBase64) throws Exception {
|
||||
if (StringUtils.isEmpty(dataBase64)) return null;
|
||||
return EncryptLib.INSTANCE.decryptTextDef1(dataBase64);
|
||||
return EncipherLib.INSTANCE.decryptTextDef1(dataBase64);
|
||||
}
|
||||
|
||||
|
||||
//解密
|
||||
public static String decryptDef2(String dataBase64) throws Exception {
|
||||
if (StringUtils.isEmpty(dataBase64)) return null;
|
||||
return EncryptLib.INSTANCE.decryptTextDef2(dataBase64);
|
||||
return EncipherLib.INSTANCE.decryptTextDef2(dataBase64);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user