1
Fork 0

Use a fixed salt length

This commit is contained in:
Tobias Berger 2022-01-08 20:22:43 +01:00
parent 93e2b1c7cb
commit 25a11f5761
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -12,9 +12,7 @@ import {
MessageType,
} from "./lib/ServerMessage";
const SALT = crypto
.randomBytes(Math.round(Math.random() * 1024))
.toString("hex");
const SALT = crypto.randomBytes(2048).toString("hex");
const port = 8085;
const timeout = 15000;