From d56f904745864f25b6d7ba724dfb258baf45a4d9 Mon Sep 17 00:00:00 2001 From: MalcyL Date: Fri, 13 Oct 2023 14:31:11 +0100 Subject: [PATCH] md4 -> md5 --- client/lib/hash-key.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lib/hash-key.js b/client/lib/hash-key.js index 95dee5e..4c1654a 100644 --- a/client/lib/hash-key.js +++ b/client/lib/hash-key.js @@ -1,14 +1,14 @@ var crypto = require('crypto'); /** - * Hash a key using md4 & base64 encoding. Md4 is used as the implementation + * Hash a key using md5 & base64 encoding. Md4 is used as the implementation * in node is the fastest hashing alg supported. * @param {string} key value to hash * @return {string} hashed key */ var hashKey = function hashKey(key) { return crypto - .createHash('md4') + .createHash('md5') .update(key) .digest('base64'); };