【发布时间】:2016-01-31 02:32:32
【问题描述】:
我在 Windows 应用商店应用程序中使用 Bcrypt.net 哈希处理密码。在 Windows 平板电脑中构建和测试时,它工作正常。但是当我尝试上传这个应用程序来存储它时,它在支持的 API 测试中失败了。
给出以下错误详情
MSCORLIB 中的 API System.ApplicationException,PUBLICKEYTOKEN=B77A5C561934E089 不支持此应用程序类型。 BCrypt.Net.dll 调用此 API。
API System.Runtime.Serialization.SerializationInfo in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.Security.Cryptography.RandomNumberGenerator in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.ApplicationException.#ctor in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.ApplicationException.#ctor(System.String) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.ApplicationException.#ctor(System.String,System.Exception) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.ApplicationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.Text.StringBuilder.AppendFormat(System.String,System.Object) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.Security.Cryptography.RandomNumberGenerator.Create in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
API System.Security.Cryptography.RandomNumberGenerator.GetBytes(System.Byte[]) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. BCrypt.Net.dll calls this API.
可以为此做些什么?有任何想法吗? 提前致谢。
【问题讨论】:
-
stackoverflow.com/questions/14069739/…中的问题可能会给你相关的指点。
-
你确定你用的是winrt版本的dll
-
似乎提供了 PBKDF2:KeyDerivationAlgorithmProvider(如果它是商店 API 的一部分),这是 BCrypt() 的一个很好的替代品。
标签: c# windows-store-apps windows-store bcrypt.net