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.
SOP/sop-sdk/sdk-csharp/SDKCSharp/Utility/SignUtil.cs

28 lines
822 B

6 years ago
using System;
using System.Collections;
using System.Collections.Generic;
namespace SDKCSharp.Utility
{
/// <summary>
/// 签名工具类
/// </summary>
public class SignUtil
{
/// <summary>
/// 构建签名。
6 years ago
/// </summary>
/// <param name="parameters">参数.</param>
/// <param name="privateKeyPem">私钥.</param>
/// <param name="charset">字符集.</param>
/// <param name="signType">签名类型.</param>
/// <returns>返回签名.</returns>
public static string CreateSign(IDictionary<string, string> parameters, string privateKeyPem, string charset, bool isFromFile, string signType)
6 years ago
{
return AlipaySignature.RSASign(parameters, privateKeyPem, charset, isFromFile, signType);
6 years ago
}
}
}