Password hashing
Can someone help me find function to hash password and verify it that works in Cloudflare Workers
3 Replies
bcrypt with bcryptjs lib doesn't work?
probably not since CF workers edge runtime you cant import/require crypto, its just a global iirc which breaks a lot of these crypto libraries.
You can use it for passwords, https://developers.cloudflare.com/workers/runtime-apis/web-crypto/
Web Crypto · Cloudflare Workers docs
The Web Crypto API provides a set of low-level functions for common cryptographic tasks. The Workers Runtime implements the full surface of this API, …
I'd just say, workers are not the right place for hashing.