aliyun / aliyun-oss-csharp-sdk

Aliyun OSS SDK for C#
MIT License
381 stars 206 forks source link

Unity 5.3.4f1 Editor下使用正常 打包发布apk后报错 #57

Closed connself closed 6 years ago

connself commented 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 出现异常 有什么解决办法吗?