node:crypto functions
I'm trying to use node:crypto functions in my code, but I am receiving errors. I get the error attached in the IDE. But then I get intellisense which shows me those crypto functions. I have the compatibility_flags = [ "nodejs_compat" ] in my wrangler.toml.
3 Replies
and I guess as expected I get the error
TypeError: crypto.scryptSync is not a function
do I need to install something?Not a supported function - https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/
Crypto · Cloudflare Workers docs
The node:crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL’s hash, HMAC, cipher, decipher, sign, and …
my bad, can't believe I missed that