What do you use to hash passwords on Cloudflare workers?

I've tried @node-rs/argon2 and node-argon neither of which seem to work.
2 Replies
jasonj
jasonj2w ago
use web-crypto for cloudflare .it similar to stand web-crypto .but some small part is diffent. https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#digest
Cloudflare Docs
Web Crypto | Cloudflare Workers docs
A set of low-level functions for common cryptographic tasks.
kdaniel2410
kdaniel2410OP2w ago
This is the solution i landed on https://github.com/paulmillr/noble-hashes
GitHub
GitHub - paulmillr/noble-hashes: Audited & minimal JS implementatio...
Audited & minimal JS implementation of hash functions, MACs and KDFs. - paulmillr/noble-hashes
Want results from more Discord servers?
Add your server