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.

15 lines
418 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.esms.utils;
import org.junit.Test;
public class MD5UtilsTest {
@Test
public void testMD5Encode(){
// 数据源及是,密码
String originString = "123" ;
// 静态调用MD5Utils.encodeByMD5(),返回的字符串为md5 32位字符及加密后的密码
String encodeByMD5 = MD5Utils.encodeByMD5(originString);
System.out.println(encodeByMD5);
}
}