Commit 1ab91015 authored by 王亮's avatar 王亮

update encrypt key.

parent 477dee8c
...@@ -4,6 +4,7 @@ import cn.quantgroup.security.AESEncryption; ...@@ -4,6 +4,7 @@ import cn.quantgroup.security.AESEncryption;
import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigService; import com.ctrip.framework.apollo.ConfigService;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
public class AESUtils { public class AESUtils {
...@@ -36,8 +37,8 @@ public class AESUtils { ...@@ -36,8 +37,8 @@ public class AESUtils {
public static AESEncryption encryption() { public static AESEncryption encryption() {
if (encryption == null) { if (encryption == null) {
Config config = ConfigService.getAppConfig(); Config config = ConfigService.getAppConfig();
String key = config.getProperty("encrypt.key", ""); String key = config.getProperty("keystone.security.key", "");
String iv = config.getProperty("encrypt.iv", ""); String iv = config.getProperty("keystone.security.iv", "");
encryption = new AESEncryption(key, iv, true); encryption = new AESEncryption(key, iv, true);
} }
return encryption; return encryption;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment