pilcrowOnPaper/oslo

Hash password on edge?

osseonews opened this issue · 1 comments

I was reading the docs here for password functionality: https://oslo.js.org/reference/password/

It says, this requires Node APIs. If so, how would you hash a password in edge environment, like Cloudflare Workers or NextJs Edge/Middleware?

I would look into pure JS implementation of Scrypt like noble-hashes, though it'll be pretty slow compared to Node APIs