Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
d107234b
Commit
d107234b
authored
Jan 03, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库账号密码加密,ui更新
parent
501cf6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
DataSource.java
src/test/java/base/DataSource.java
+4
-1
No files found.
src/test/java/base/DataSource.java
View file @
d107234b
...
...
@@ -8,16 +8,19 @@ import org.apache.commons.dbcp2.BasicDataSource;
*/
public
class
DataSource
extends
BasicDataSource
{
private
String
key
=
"CNxgrtFG2nYQUfu"
;
private
DuibaLog
logger
=
DuibaLog
.
getLogger
();
@Override
public
void
setPassword
(
String
password
)
{
password
=
BlowfishUtils
.
decryptBlowfish
(
password
,
key
);
logger
.
info
(
"password:"
+
password
);
super
.
setPassword
(
password
);
}
@Override
public
void
setUsername
(
String
username
)
{
username
=
BlowfishUtils
.
decryptBlowfish
(
username
,
key
);
logger
.
info
(
"username:"
+
username
);
super
.
setUsername
(
username
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment