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

Improve node:crypto polyfills #419

Open
2 tasks
pi0 opened this issue Feb 6, 2025 · 2 comments
Open
2 tasks

Improve node:crypto polyfills #419

pi0 opened this issue Feb 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Feb 6, 2025

Describe the feature

Some node:crypto exports in unenv v2 had been improved (src) however many were also unimplemented and some commonly requested, we should investigate implementation (PRs more than welcome)

Note

For cloudflare users:** Since unenv v2, crypto is implemented as hybrid. Cloudflare might have more native implementations. Both createHash and createHmac are implemented natively in workerd and soon will be available for Nitro and Nuxt in cloudflare preset as they migrate to unenv2.

@oasisniikawa
Copy link

When I deployed my blog app created with Nuxt3 to NuxtHub, the deployment was successful and the top page was displayed, but when displaying the blog page, an internal error occurred on the /api side. "[unenv] crypto.createHmac is not implemented yet!"
It works fine with Azure hosting.

I wonder if this problem has already been reflected in NuxtHub? Sorry, I don't really understand the relationship there.

@pi0
Copy link
Member Author

pi0 commented Feb 18, 2025

@oasisniikawa nodejs compat handling with nuxt hub is different. i suggest you report it there.

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

2 participants