Use a fixed salt length
This commit is contained in:
parent
93e2b1c7cb
commit
25a11f5761
1 changed files with 1 additions and 3 deletions
|
@ -12,9 +12,7 @@ import {
|
||||||
MessageType,
|
MessageType,
|
||||||
} from "./lib/ServerMessage";
|
} from "./lib/ServerMessage";
|
||||||
|
|
||||||
const SALT = crypto
|
const SALT = crypto.randomBytes(2048).toString("hex");
|
||||||
.randomBytes(Math.round(Math.random() * 1024))
|
|
||||||
.toString("hex");
|
|
||||||
|
|
||||||
const port = 8085;
|
const port = 8085;
|
||||||
const timeout = 15000;
|
const timeout = 15000;
|
||||||
|
|
Reference in a new issue