-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Use the framework implementation of PBKDF2/RFC2898 #30941
Comments
Thanks for contacting us. |
Cool, I'll combine this into the existing span issue |
Hi @HaoK ! Are there any plans to remove the managed implementation and/or Win7Pbkdf2Provider/Win8Pbkdf2Provider implementations? Will those be kept around for compatibility? |
Unfortunately we still have to support netstandard and net461, we can't use the new one shot pbdkdf2 in those target frameworks right? |
Is the new API faster than the Win8/Win7 implementations as well? We can switch the code to always use the NetCore provider when available and only use the Win8/7/Managed implementations on netstandard/net461 |
Correct. It is .NET 6.
It should be "as fast or better". It borrows many ideas from the DataProtection implementation for Windows, and has a slight allocation improvement for Windows 10+. On MacOS it uses CommonCrypto from the underlying OS, and for Linux it uses openssl. |
Cool, so sounds like we should just switch to always using this on netcoreapp, and keeping the old branching providers only for non netcoreapp, I'll open a PR tomorrow, thanks for pointing this out |
Thanks! |
This is a follow up from aspnet/DataProtection#272, #2508 and dotnet/runtime#24897.
This was recently fixed via dotnet/runtime#48107.
This bug/feature-request is to track that ASP.NET Core picks up and uses that API and removes its duplicate implementation.
cc @bartonjs @blowdart @GrabYourPitchforks @tmds @Tornhoof @vcsjones
The text was updated successfully, but these errors were encountered: