mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
新增可以传入秘钥的SM3加密工具方法
This commit is contained in:
parent
9c6339a99c
commit
a9a4143bee
@ -133,6 +133,16 @@ public class SmUtil {
|
|||||||
return new SM3();
|
return new SM3();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SM3加密,可以传入盐<br>
|
||||||
|
*
|
||||||
|
* @param salt 加密盐
|
||||||
|
* @return {@link SM3}
|
||||||
|
*/
|
||||||
|
public static SM3 sm3(byte[] salt) {
|
||||||
|
return new SM3(salt);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SM3加密,生成16进制SM3字符串<br>
|
* SM3加密,生成16进制SM3字符串<br>
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user