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

Suggestion: use SubtleCrypto digest over @oslojs/crypto for sha256 #109

Closed

Conversation

runjak
Copy link
Contributor

@runjak runjak commented Aug 6, 2024

As noted in this discussion it seems possible to drop the dependency on @oslojs/crypto in favour of using SubtleCrypto.

The main argument towards this would be to reduce the number of dependencies at play.

There are additional aspects that SubtleCrypto does not block the event loop and has faster digest computations for bigger inputs. For the expected sizes of 32 bytes this is not a direct issue here.

@runjak
Copy link
Contributor Author

runjak commented Aug 7, 2024

My understanding is that contrary to #110 this feature would be present in Cloudflare workers: https://developers.cloudflare.com/workers/runtime-apis/web-crypto/

@runjak
Copy link
Contributor Author

runjak commented Aug 26, 2024

@sergiodxa any opinions on this? Would you rather have it in our out?

@sergiodxa sergiodxa closed this Nov 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants