Skip to content

Commit

Permalink
code format;
Browse files Browse the repository at this point in the history
  • Loading branch information
sasou2008 committed Jan 24, 2019
1 parent 84f1e00 commit 7be99ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/src/com/sync/common/Tool.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ public static String md5(String s) {
char hexDigits[]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
try {
byte[] btInput = s.getBytes("UTF-8");
// 获得MD5摘要算法的 MessageDigest 对象
MessageDigest mdInst = MessageDigest.getInstance("MD5");
// 使用指定的字节更新摘要
mdInst.update(btInput);
// 获得密文
byte[] md = mdInst.digest();
// 把密文转换成十六进制的字符串形式
int j = md.length;
char str[] = new char[j * 2];
int k = 0;
Expand Down

0 comments on commit 7be99ba

Please sign in to comment.