Skip to content

Commit 0b338e4

Browse files
authored
update hash method so it doesn't fail on a fips enabled machine (#939)
1 parent 1f98d3c commit 0b338e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const transform = require("./transform");
1919
// Lazily instantiated when needed
2020
let defaultCacheDirectory = null;
2121

22-
let hashType = "md4";
23-
// use md5 hashing if md4 is not available
22+
let hashType = "sha256";
23+
// use md5 hashing if sha256 is not available
2424
try {
2525
crypto.createHash(hashType);
2626
} catch (err) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy