public class Sm3Utils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static GmCryptoNativeUtil |
gmCryptoNativeUtil |
| 构造器和说明 |
|---|
Sm3Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
encryptFromData(byte[] sourceData)
字节码SM3加密
|
static String |
encryptFromHex(String sourceHex)
字符串SM3加密
|
static String |
encryptFromText(String sourceText)
字符串SM3加密
|
protected static final GmCryptoNativeUtil gmCryptoNativeUtil
public static byte[] encryptFromData(byte[] sourceData)
throws GmCryptoException
sourceBytes - 明文字节码GmCryptoExceptionpublic static String encryptFromHex(String sourceHex) throws GmCryptoException
sourceHex - 明文16进制串GmCryptoExceptionpublic static String encryptFromText(String sourceText) throws GmCryptoException
sourceText - 明文字符串GmCryptoExceptionCopyright © 2025. All rights reserved.