-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProtectedData usage #16639
Comments
@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. |
@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 |
@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 PowerShell/PowerShell#1654 |
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
The text was updated successfully, but these errors were encountered: