From 0b338e4abb4e7c22a09c2cee39b1b1664226ecaf Mon Sep 17 00:00:00 2001 From: Dan Armbrust Date: Thu, 25 Aug 2022 10:15:07 -0500 Subject: [PATCH] update hash method so it doesn't fail on a fips enabled machine (#939) --- src/cache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache.js b/src/cache.js index 29482924..2e80e3e9 100644 --- a/src/cache.js +++ b/src/cache.js @@ -19,8 +19,8 @@ const transform = require("./transform"); // Lazily instantiated when needed let defaultCacheDirectory = null; -let hashType = "md4"; -// use md5 hashing if md4 is not available +let hashType = "sha256"; +// use md5 hashing if sha256 is not available try { crypto.createHash(hashType); } catch (err) {