package com.wms_admin; import com.wms_admin.utils.MyUtils; import org.apache.shiro.crypto.hash.Md5Hash; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.util.DigestUtils; @SpringBootTest public class WmsAdminApplicationTests { @Test public void contextLoads() { String salt = MyUtils.getSalt(8); System.out.println(salt); String oldMD5 = new Md5Hash(salt, null,1024).toString(); System.out.println(oldMD5); } }