add 新增 SecurityUtils.encryptBySm3 加密方法
(cherry picked from commit 86ea7e0f4d48373c103468769769e435dd34c513)2.X
parent
e0197638a4
commit
4da5b36c50
|
|
@ -230,4 +230,14 @@ public class EncryptUtils {
|
|||
return SecureUtil.sha256(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* sm3加密
|
||||
*
|
||||
* @param data 待加密数据
|
||||
* @return 加密后字符串, 采用Hex编码
|
||||
*/
|
||||
public static String encryptBySm3(String data) {
|
||||
return SmUtil.sm3(data);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue