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

WebCrypto opaque/extractable keys? #22

Open
littledan opened this issue Jun 25, 2022 · 1 comment
Open

WebCrypto opaque/extractable keys? #22

littledan opened this issue Jun 25, 2022 · 1 comment

Comments

@littledan
Copy link

When creating a key in WebCrypto, the extractable parameter/property indicates whether a key should be treated as opaque. This makes sense on the Web Platform where you could put something in IndexedDB and read it back out without compromising opacity, but makes less sense natively--how would it be used? Should WinterCG platforms be expected to support non-extractable keys?

@panva
Copy link

panva commented Jun 26, 2022

I don't see a case for carving non-extractable keys out. The API is simple and its placement in a non-browser context is not problematic (as seen by implementation in deno, node, workers).

As a library developer I don't need another place to branch code based on iffy runtime detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants