mirror of https://gitee.com/stylefeng/roses
【8.1.8】【guomi】更新sm3 util封装
parent
d289b0e92b
commit
43acf1aeb3
|
@ -45,4 +45,14 @@ public class GuomiUtil {
|
|||
return sm2.decryptStr(encryptedStr, KeyType.PrivateKey, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国密SM3加密,类似MD5
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2024/6/26 10:10
|
||||
*/
|
||||
public static String sm3(String text) {
|
||||
return SmUtil.sm3(text);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue