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.
23 lines
699 B
23 lines
699 B
package cc.bnblogs.test; |
|
|
|
import cc.bnblogs.Application; |
|
import org.junit.Test; |
|
import org.junit.runner.RunWith; |
|
import org.springframework.boot.test.context.SpringBootTest; |
|
import org.springframework.test.context.junit4.SpringRunner; |
|
import org.springframework.util.DigestUtils; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
/** |
|
* @author zfp@bnblogs.cc |
|
* @createTime: 2022/10/23 |
|
*/ |
|
@RunWith(SpringRunner.class) |
|
@SpringBootTest(classes = {Application.class}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
|
public class TestMd5Password { |
|
@Test |
|
public void testMd5() { |
|
System.out.println(DigestUtils.md5DigestAsHex("admin123".getBytes(StandardCharsets.UTF_8))); |
|
} |
|
}
|
|
|