Commit d107234b authored by 马博's avatar 马博

数据库账号密码加密,ui更新

parent 501cf6cb
...@@ -8,16 +8,19 @@ import org.apache.commons.dbcp2.BasicDataSource; ...@@ -8,16 +8,19 @@ import org.apache.commons.dbcp2.BasicDataSource;
*/ */
public class DataSource extends BasicDataSource { public class DataSource extends BasicDataSource {
private String key = "CNxgrtFG2nYQUfu"; private String key = "CNxgrtFG2nYQUfu";
private DuibaLog logger = DuibaLog.getLogger();
@Override @Override
public void setPassword(String password) { public void setPassword(String password) {
password = BlowfishUtils.decryptBlowfish(password,key); password = BlowfishUtils.decryptBlowfish(password,key);
logger.info("password:"+password);
super.setPassword(password); super.setPassword(password);
} }
@Override @Override
public void setUsername(String username) { public void setUsername(String username) {
username = BlowfishUtils.decryptBlowfish(username,key); username = BlowfishUtils.decryptBlowfish(username,key);
logger.info("username:"+username);
super.setUsername(username); super.setUsername(username);
} }
......
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