Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
7bf01732
Commit
7bf01732
authored
Dec 09, 2018
by
songxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
长短链接优化
parent
995f2e1c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
UrlUtils.java
...ain/java/com/pcloud/common/utils/httpclient/UrlUtils.java
+0
-0
MD5.java
...common/src/main/java/com/pcloud/common/utils/rsa/MD5.java
+17
-6
temp.jpg
temp.jpg
+0
-0
No files found.
pcloud-common/src/main/java/com/pcloud/common/utils/httpclient/UrlUtils.java
View file @
7bf01732
This diff is collapsed.
Click to expand it.
pcloud-common/src/main/java/com/pcloud/common/utils/rsa/MD5.java
View file @
7bf01732
...
...
@@ -10,8 +10,6 @@ import org.slf4j.LoggerFactory;
import
com.pcloud.common.utils.string.StringUtil
;
/**
* MD5
*/
...
...
@@ -66,9 +64,22 @@ public class MD5 {
else
md5StrBuff
.
append
(
Integer
.
toHexString
(
0xFF
&
byteArray
[
i
]));
}
return
md5StrBuff
.
toString
()
.
toUpperCase
()
;
return
md5StrBuff
.
toString
();
}
/**
* MD5字符串,全大写
*
* @param str
* @return
*/
public
static
String
getMD5StrUpper
(
String
str
)
{
if
(
StringUtil
.
isEmpty
(
str
))
{
return
str
;
}
return
getMD5Str
(
str
).
toUpperCase
();
}
/**
* MD5字符串,全小写
*
...
...
@@ -111,9 +122,9 @@ public class MD5 {
return
md5StrBuff
.
toString
().
toUpperCase
();
}
public
static
void
main
(
String
[]
args
){
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
MD5
.
getMD5Str
(
"chenjianhua"
));
System
.
out
.
println
(
DigestUtils
.
md5Hex
(
"chenjianhua"
).
toUpperCase
());
}
}
temp.jpg
deleted
100644 → 0
View file @
995f2e1c
This diff is collapsed.
Click to expand it.
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