Password hashing

Can someone help me find function to hash password and verify it that works in Cloudflare Workers
3 Replies
sen.py
sen.py17mo ago
bcrypt with bcryptjs lib doesn't work?
dan
dan17mo ago
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, …
barry
barry17mo ago
I'd just say, workers are not the right place for hashing.
Want results from more Discord servers?
Add your server