gpt4 book ai didi

windows-10 - Windows 运行时组件 - System.Security.Cryptography

转载 作者:行者123 更新时间:2023-12-03 13:17:43 25 4
gpt4 key购买 nike

我正在开发 Windows 10 通用应用程序 (HTML+WinJS)。我需要同时进行 Sharepoint 身份验证。我已经创建了一个 Windows 运行时组件来编写用于身份验证的 C# 代码。我引用了以下链接: https://coderwall.com/p/ho2uwq/authentication-in-sharepoint-2013-using-c-csom-client

现在我的问题是,当我们在“Windows 运行时组件”中使用此 C# 代码时,它无法识别包含在“System.Security.Cryptography”命名空间中用于创建安全密码并将其传递给 SharePointOnlineCredentials 的 SecureString 类认证服务。因为 System.Security.Cryptography 包含在完整的 .NET(桌面 .NET)中,而 UWP 的 .NET 没有。

现在如何进行?

最佳答案

可能现在我们有一个 nuget 包,您可以引用它,并且 SecureString 将在 UWP 应用程序中可用。 https://www.nuget.org/packages/System.Security.SecureString

关于windows-10 - Windows 运行时组件 - System.Security.Cryptography,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32647296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com