Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows runtime component - System.Security.Cryptography

Tags:

windows-10

I am working on a Windows 10 Universal App(HTML+WinJS). I need to do Sharepoint authentication in the same. I have created a Windows runtime component to write C# code for authentication. I refered below link: https://coderwall.com/p/ho2uwq/authentication-in-sharepoint-2013-using-c-csom-client

Now my problem is that When we use this C# code in ‘Windows Runtime component’ it does not recognize SecureString class which is included in ‘System.Security.Cryptography’ namespace used for creating secure password and pass it to the SharePointOnlineCredentials’ authentication service. Because System.Security.Cryptography is included in the full .NET (desktop .NET), and the .NET for UWP does not have it.

How to proceed now?

like image 335
Nidhi Paneri Avatar asked Aug 27 '26 16:08

Nidhi Paneri


1 Answers

Probably now we have a nuget package which you can refer and SecureString will be available in UWP app. https://www.nuget.org/packages/System.Security.SecureString

like image 107
saurabh Avatar answered Aug 31 '26 03:08

saurabh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!