Skip to content

Commit

Permalink
update hash method so it doesn't fail on a fips enabled machine (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
darmbrust committed Aug 25, 2022
1 parent 1f98d3c commit 0b338e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b338e4

Please sign in to comment.