From 0664a577e25d137c576dae2c1bb861f2d9ece79c Mon Sep 17 00:00:00 2001 From: Dan Armbrust Date: Sat, 23 Apr 2022 12:01:40 -0500 Subject: [PATCH] update hash method mechanism so it doesn't fail on a fips enabled machine. --- 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) {