From 866a097099eee926e2dd703813d6056377a14e0f Mon Sep 17 00:00:00 2001 From: Maurizio Casimirri Date: Tue, 19 Dec 2023 17:18:56 +0100 Subject: [PATCH] reformat --- packages/shell-api/src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shell-api/src/helpers.ts b/packages/shell-api/src/helpers.ts index 262598755..bb5d78168 100644 --- a/packages/shell-api/src/helpers.ts +++ b/packages/shell-api/src/helpers.ts @@ -197,7 +197,7 @@ export function processDigestPassword( } // NOTE: this code has raised a code scanning alert about the "use of a broken or weak cryptographic algorithm": // we inherited this code from `mongo`, and we cannot replace MD5 with a different algorithm, since MD5 is part of the SCRAM-SHA-1 protocol, - // and the purpose of `passwordDigestor=client` is to improve the security of SCRAM-SHA-1, allowing the creation of new users + // and the purpose of `passwordDigestor=client` is to improve the security of SCRAM-SHA-1, allowing the creation of new users // without the need to communicate their password to the server. const hash = crypto.createHash('md5'); hash.update(`${username}:mongo:${command.pwd}`);