commit da3d3735a9b8e35407874e61cb6288999a2271c9
parent ca66c35a4404dc43ebbe6b87901c9dae90102905
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sat, 23 Mar 2024 18:58:45 -0700
Use more rounds when hashing passwords
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/user.c b/user.c
@@ -33,7 +33,7 @@ adduser(struct pagedata *pd, char *name, char *key)
{
char *salt, *hash;
- salt = bcrypt_gensalt(8);
+ salt = bcrypt_gensalt(12);
hash = bcrypt(key, salt);
if (!hash)
return 1;