| | |
| | | package com.yeshi.fanli.util;
|
| | |
|
| | | public class SignUtil {
|
| | |
|
| | | private static String KEY = "LINESTOKEN2016BB";
|
| | |
|
| | | public static boolean isSignRight(String device, String timestamp, String sign) {
|
| | | if (StringUtil.Md5(device + KEY + timestamp).equals(sign))
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.util; |
| | | |
| | | public class SignUtil { |
| | | |
| | | private static String KEY = "LINESTOKEN2016BB"; |
| | | |
| | | public static boolean isSignRight(String device, String timestamp, String sign) { |
| | | if (StringUtil.Md5(device + KEY + timestamp).equals(sign)) |
| | | return true; |
| | | return false; |
| | | } |
| | | |
| | | } |