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

Add crypto.key module #86

Open
lukeed opened this issue Sep 18, 2021 · 0 comments
Open

Add crypto.key module #86

lukeed opened this issue Sep 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lukeed
Copy link
Owner

lukeed commented Sep 18, 2021

The current worktop/crypto module has keyload and keygen methods, but they're really not all that helpful. I end up dropping into crypto.subtle.importKey (and others) directly quite often, which is a good signal that something should be done here.

Additionally, the native TS definitions for importKey et all are pretty useless... With custom methods, I should be able to accurately offer strict overloads so that you can only have/define valid combinations. For example, for importKey has its own restrictions and generateKey has different input requirements based on format. Both of these can offer much better types - and possibly a tiny abstraction.

@lukeed lukeed added the enhancement New feature or request label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant