Skip to content
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

Closed
rolfik opened this issue Mar 8, 2016 · 12 comments
Closed

ProtectedData usage #16639

rolfik opened this issue Mar 8, 2016 · 12 comments
Assignees
Labels
Milestone

Comments

@rolfik
Copy link

rolfik commented Mar 8, 2016

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

@bartonjs
Copy link
Member

bartonjs commented Mar 8, 2016

@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.

@bartonjs bartonjs assigned ghost and unassigned bartonjs Mar 8, 2016
@rolfik
Copy link
Author

rolfik commented Mar 9, 2016

@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.

@bartonjs
Copy link
Member

bartonjs commented Mar 9, 2016

@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.

@joshfree joshfree assigned chcosta and unassigned ghost Apr 21, 2016
@joshfree
Copy link
Member

@chcosta can you review the packaging work for System.Security.Cryptography.ProtectedData in RC3? This is a windows-only library

@ericstj
Copy link
Member

ericstj commented Apr 23, 2016

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.

@ericstj ericstj closed this as completed Apr 23, 2016
@rrelyea
Copy link
Contributor

rrelyea commented Feb 11, 2017

is there an issue tracking providing support for encryption on non-windows platforms? thx -nuget team

@mountgellert
Copy link
Contributor

@ericstj, @rrelyea, any update on this item?

@jnm2
Copy link
Contributor

jnm2 commented Apr 26, 2017

@karelz Is there a way for me to check whether platform differences like this are already documented in terrajobst/platform-compat?

@karelz
Copy link
Member

karelz commented Apr 26, 2017

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.

@karelz
Copy link
Member

karelz commented Apr 26, 2017

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 ...

@psmulovics
Copy link

Any news on this item? This would be needed for encrypted password storage for the nuget client.

@SteveL-MSFT
Copy link
Contributor

We also need this for PowerShell PowerShell/PowerShell#1654

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rtm milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests