Files
smcryptoutils/SMCryptoUtils/ISMUtil.cs

18 lines
531 B
C#
Raw Permalink Normal View History

2023-03-02 22:57:29 +08:00
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);
}
}