how to use node:crpyto in a cloudflare-pages application
how to use node:crpyto in a cloudflare-pages application
4 Replies
Hi @pinefin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you might find the Cloudflare Pages documentation helpful for understanding how to work with Node.js modules in a Cloudflare Pages environment. Additionally, you can explore the Nuxt Deploy documentation for more information on deploying Nuxt applications to Cloudflare Pages.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@918151599807946752> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
You'll want to use the web crypto API that's what I'm using: https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto
MDN Web Docs
Window: crypto property - Web APIs | MDN
The crypto read-only property of the Window interface returns the Crypto object for this window's scope. This object gives web pages access to certain cryptographic related services.
i ended up going with this, thank you!