lyh
3 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.lxzn.auth;
 
import com.lxzn.framework.utils.BCryptUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
 
@RunWith(SpringRunner.class)
@SpringBootTest
public class BCrypUtilTest {
 
    @Test
    public void testEncode() {
        StringBuilder stringBuilder = new StringBuilder();
        for(int i = 0; i < 100; i++) {
            stringBuilder.append("张");
            String str = BCryptUtil.encode(stringBuilder.toString());
            System.out.println(str);
        }
    }
}