From a4db314595828d26999f16cb02afa00b7b76812c Mon Sep 17 00:00:00 2001 From: Jess Date: Sat, 15 Jun 2024 02:28:07 +0100 Subject: [PATCH] increase bcrypt rounds at the recommendation of jonathan rusherhack the first --- .../src/main/java/de/com/baseband/server/BotServiceHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/de/com/baseband/server/BotServiceHandler.java b/Server/src/main/java/de/com/baseband/server/BotServiceHandler.java index f19c98c..2a7a588 100644 --- a/Server/src/main/java/de/com/baseband/server/BotServiceHandler.java +++ b/Server/src/main/java/de/com/baseband/server/BotServiceHandler.java @@ -37,7 +37,7 @@ public class BotServiceHandler { ).findFirst().orElse(null); if(user != null) { - user.set("password", BCrypt.withDefaults().hashToString(4, tcn.getString("password").toCharArray())); + user.set("password", BCrypt.withDefaults().hashToString(10, tcn.getString("password").toCharArray())); tos.writeInt(201); } else { tos.writeInt(404);