|
@@ -141,7 +141,7 @@ public class DESedeEncryptAndDecryptFile {
|
|
|
public static String decrypt(String data) {
|
|
|
String res = null;
|
|
|
try {
|
|
|
- res = new String(decryptMode(hexString2ByteArray(data), ResourceUtil.getConfigByName("face.desKey")), StandardCharsets.UTF_8);
|
|
|
+ res = new String(decryptMode(hexString2ByteArray(data), ResourceUtil.getConfigByName("offline.desKey")), StandardCharsets.UTF_8);
|
|
|
} catch (Exception e) {
|
|
|
throw new ServiceException(e.getMessage());
|
|
|
}
|
|
@@ -151,7 +151,7 @@ public class DESedeEncryptAndDecryptFile {
|
|
|
public static String encrypt(String data) {
|
|
|
String res = null;
|
|
|
try {
|
|
|
- res = byteArray2HexString(encryptMode(data.getBytes(), ResourceUtil.getConfigByName("face.desKey")));
|
|
|
+ res = byteArray2HexString(encryptMode(data.getBytes(), ResourceUtil.getConfigByName("offline.desKey")));
|
|
|
} catch (Exception e) {
|
|
|
throw new ServiceException(e.getMessage());
|
|
|
}
|