首次提交

This commit is contained in:
lzjyzq2
2023-03-02 22:57:29 +08:00
parent 295157d946
commit 505bf37dab
16 changed files with 1577 additions and 0 deletions

17
SMCryptoUtils/ISMUtil.cs Normal file
View File

@ -0,0 +1,17 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SMCryptoUtils
{
public interface ISMUtil
{
string decrypt(string data, string appId, string appSecret);
string encrypt(string data, string appId, string appSecret);
string sign(JObject jsonObject, string appSecret, string privateKey);
bool verify(JObject jsonObject, string appSecret, string publicKey, string responseSign);
}
}