|  |  | 
 |  |  | import cn.hutool.crypto.SecureUtil; | 
 |  |  | import cn.hutool.crypto.asymmetric.KeyType; | 
 |  |  | import cn.hutool.crypto.asymmetric.RSA; | 
 |  |  | import cn.hutool.crypto.asymmetric.Sign; | 
 |  |  | import cn.hutool.crypto.asymmetric.SignAlgorithm; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.junit.jupiter.api.Test; | 
 |  |  | import org.springframework.boot.test.context.SpringBootTest; | 
 |  |  |  | 
 |  |  | import java.math.BigDecimal; | 
 |  |  | import java.security.KeyPair; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  | 
 |  |  |         byte[] decrypt = rsa.decrypt(aByte, KeyType.PrivateKey); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void md5Test() { | 
 |  |  |         String md5str = SecureUtil.md5("123456"); | 
 |  |  |         log.info("{}", md5str); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void bigdecimalTest() { | 
 |  |  |         BigDecimal bigDecimal = new BigDecimal("123.12345678").setScale(4, BigDecimal.ROUND_DOWN); | 
 |  |  |         log.info("--->{}", bigDecimal); | 
 |  |  |     } | 
 |  |  | } |