Skip to content

Commit

Permalink
fix: force 'crypto.createHash()' to use SHA-256 (#360) (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet authored Sep 22, 2022
1 parent 51a970f commit 47602b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// eslint-disable-next-line
const crypto = require('crypto'); // Force method use SHA-256 to address
const cryptCreateHashOrig = crypto.createHash; // OpenSSL 3.0 deprecation of
crypto.createHash = () => cryptCreateHashOrig('sha256'); // MD4 algorithm

module.exports = {
style: {
postcss: {
Expand Down

0 comments on commit 47602b5

Please sign in to comment.