Crunchy
2025-06-14 b2f31607cbe26d721cd7514b619162b3e355b1aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
    }
}