You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
292 B
14 lines
292 B
5 days ago
|
using Org.BouncyCastle.Utilities.Encoders;
|
||
|
|
||
|
namespace Admin.NET.Core;
|
||
|
|
||
|
/// <summary>
|
||
|
/// SM工具类
|
||
|
/// </summary>
|
||
|
public class SMUtil
|
||
|
{
|
||
|
public static string StrToHex(string str)
|
||
|
{
|
||
|
return Encoding.ASCII.GetString(Hex.Encode(Encoding.UTF8.GetBytes(str))).ToUpper();
|
||
|
}
|
||
|
}
|