How can I use ProtectedData from
https://github.com/dotnet/corefx/blob/master/src/System.Security.Cryptography.ProtectedData/ref/System.Security.Cryptography.ProtectedData.cs?
I see no nuget package available or is it?
Thank You
@rolfik It's not currently possible; that got ported to git as a prototype proposal.
Since there are scenarios for it, it will likely appear at some point... but as an FYI those are exposing Windows-specific API, and the use of that future package will restrict your project to Windows-only.
@lextm Yes, thank You. But DNX is going to be dotnet so it should be at the namespace I have posted above.
@bartonjs Maybe there could be multiplatform alternative. Something like Data protection in Asp.net Core. Or something unified across Asp.net and .net Core.
@rolfik I agree that a multi-platform data protection solution could be built; but since the ProtectedData class is just providing a thin wrapper over Windows DPAPI it would be misleading to have an implementation of that class on other platforms that did not behave the same way DPAPI does.
@chcosta can you review the packaging work for System.Security.Cryptography.ProtectedData in RC3? This is a windows-only library
We have a package https://dotnet.myget.org/F/dotnet-core/api/v2/package/System.Security.Cryptography.ProtectedData/4.0.0-rc3-24022-00 and it has a dummy impl on Unix that just throws PlatformNotSupported. You should be able to use this package and get an impl on Windows, on Unix you'll have to catch the PNS exception and gracefully degrade.
is there an issue tracking providing support for encryption on non-windows platforms? thx -nuget team
@ericstj, @rrelyea, any update on this item?
@karelz Is there a way for me to check whether platform differences like this are already documented in terrajobst/platform-compat?
Only search on GH / of the entries. Some entries are collected also in: https://github.com/dotnet/corefx/wiki/ApiCompat
We will do a proper larger sweep post 5/10 across all repo.
But if you know about some incompatibilities, it is better to add them into wiki/tool right now (e.g. as a placeholder with TODOs), rather than risking we could miss them later ...
Any news on this item? This would be needed for encrypted password storage for the nuget client.
We also need this for PowerShell https://github.com/PowerShell/PowerShell/issues/1654
Most helpful comment
We also need this for PowerShell https://github.com/PowerShell/PowerShell/issues/1654