DB SECURITY
Hello DEVS,
Hope this message finds you well,
I have a question, im working on a DB salting and hashing should i use argon2id or SHA256 to secure my DB?
also based on what i add the salt Uname, randomlyGen?
Bset regards,
0
Upvotes
1
1
u/GiggleSamurai 6d ago
For passwords use argon2id; SHA-256 is too fast, so leaked hashes can be brute-forced quickly. Use a random salt per user, not the username: argon2 libraries generate it for you and store it inside the hash string, so you just save that one string and call their verify function.