You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
402 B
14 lines
402 B
3 days ago
|
package com.ynxbd.common.helper;
|
||
|
|
||
|
import org.apache.commons.codec.digest.DigestUtils;
|
||
|
|
||
|
public class TestHelper {
|
||
|
public static void main(String[] args) {
|
||
|
String treatNum = "1579733" + "huiyou69";
|
||
|
String key = DigestUtils.md5Hex(treatNum).toUpperCase();
|
||
|
System.out.println(key);
|
||
|
String substring = key.substring(3, 12);
|
||
|
System.out.println(substring);
|
||
|
}
|
||
|
}
|