Closed connself closed 6 years ago
Common/Authentication/Authentication.cs文件下 ` protected override string ComputeSignatureCore(string key, string data) { Debug.Assert(!string.IsNullOrEmpty(data));
using (var algorithm = KeyedHashAlgorithm.Create(SignatureMethod.ToUpperInvariant())) { algorithm.Key = Encoding.GetBytes(key.ToCharArray()); return Convert.ToBase64String( algorithm.ComputeHash(Encoding.GetBytes(data.ToCharArray()))); } }`
Encoding.GetBytes 出现异常 有什么解决办法吗?
Common/Authentication/Authentication.cs文件下 ` protected override string ComputeSignatureCore(string key, string data) { Debug.Assert(!string.IsNullOrEmpty(data));
Encoding.GetBytes 出现异常 有什么解决办法吗?