Closed aurelius-coffee closed 2 months ago
use argon2id(password)
or scrypt(password)
to generate keys based on passwords. Then, simply compare keys with each other
and I imagine store the randomly-generated salt alongside the hash in the db and then use it to compare?
yeah, salt helps
Hi,
I came here following this guide https://lucia-auth.com/tutorials/username-and-password/astro .
How would one go about using this library for storing and comparing passwords?
Thanks