Remix.run Logo
vivzkestrel 6 days ago

one of the most crucial packages that use node-gyp are bcrypt and argon2. Both are needed heavily for password hashing while implementing authentication and while pure js alternatives are available, they run terribly

itsjzt 5 days ago | parent | next [-]

Use bcryptjs https://www.npmjs.com/package/bcryptjs

vivzkestrel 5 days ago | parent [-]

i did mention "and while pure js alternatives are available, they run terribly"

incrudible 4 days ago | parent [-]

Slow is much faster than it not working at all. If this is a project that you might not touch for months or years, perhaps having fast bcrypt is not that important.

speedgoose 6 days ago | parent | prev [-]

That would be a good argument to not implement authentication again and go with a solid authentication and authorisation software like Keycloak, Zitadel, or Ory Kratos.

vivzkestrel 6 days ago | parent [-]

if only integrating keycloak was simple eh?

speedgoose 6 days ago | parent [-]

If you are dealing with argon2 and bcrypt, I think you coud manage some JWT hell.