mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
commit
470168e11b
@ -133,6 +133,16 @@ public class SmUtil {
|
||||
return new SM3();
|
||||
}
|
||||
|
||||
/**
|
||||
* SM3加密,可以传入盐<br>
|
||||
*
|
||||
* @param salt 加密盐
|
||||
* @return {@link SM3}
|
||||
*/
|
||||
public static SM3 sm3(byte[] salt) {
|
||||
return new SM3(salt);
|
||||
}
|
||||
|
||||
/**
|
||||
* SM3加密,生成16进制SM3字符串<br>
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user