not sam
TTCTheo's Typesafe Cult
•Created by not sam on 12/23/2023 in #questions
Password hashing on Edge
thank you for the examples, however crypto api only provides SHA and PBKDF2 hash functions which is not the best compared to bcrypt/argon2. Many libraries are built on top of the crypto api to provide a more secure hashing function.
While crypto api is indeed exposed on vercel, other libraries that are built on top on crypto (such as oslo, argon2, bcrypt) requires additional node apis that are not exposed on vercel.
That being said, I am not really sure how insecure is SHA compared to other algorithms and whether I should use it or nnot.
4 replies