WebApi开发框架增加Timestamp参数提升系统安全级别
WebApi开发框架增加Timestamp参数提升系统安全级别
ModelRequest模型更改:
数字签名验签(Verify Sign)更改:
C# Code:
public static void CheckSignature(IFileRequestAuth request)
{
string secret = ApiKeyProvider.GetSecretKey(request.ApiKey);
string sign = CryptoHelper.ToMD5(request.ApiKey + request.Bucket + secret + request.Timestamp);
//.....省略代码
}