From 4f8384e5b9901a9850fe960375ad79792b1836ec Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 22 Apr 2024 15:09:28 +0200 Subject: [PATCH] use sha256 in place of sha1 (#247) Signed-off-by: Matteo Collina --- lib/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.js b/lib/session.js index 26247ad..60efaf6 100644 --- a/lib/session.js +++ b/lib/session.js @@ -215,7 +215,7 @@ module.exports = class Session { }) return crypto - .createHash('sha1') + .createHash('sha256') .update(str, 'utf8') .digest('hex') }