-
Notifications
You must be signed in to change notification settings - Fork 1
Windows storage accessor #15
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
Conversation
|
Looking at the sample code in PR#14, I assume that one would replace Maybe the idea is that we want folks to always use |
The macOS and Linux implementations don't use a file for storage. There may be a better name for this though. My thinking with "accessor" is that it has everything that accesses storage, and
That's the idea. Applications should prefer encrypted storage. The |
|
Agreed having "file" in the name doesn't make sense. Is |
|
That makes sense and I don't see a reason not to do it. Can't prevent applications running wild with exported types but the supported scenario is using |
b5f9db7 to
43436dd
Compare
This accessor encrypts data with DPAPI before writing it to a file. All platform specific implementations share the same constructor name, so creating an encrypting accessor looks the same on all platforms:
Applications don't need to specify the platform because build constraints choose the right implementation at compile time. See #14 for an end-to-end example showing how accessors plug in to MSAL.
Closes #2