-
-
Notifications
You must be signed in to change notification settings - Fork 257
Conversation
BREAKING CHANGE: use `md4` by default for hashing
Codecov Report
@@ Coverage Diff @@
## master #369 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 29 29
Branches 13 12 -1
=========================================
Hits 29 29
Continue to review full report at Codecov.
|
May I ask why the default has been switched to MD4? Referring Wikipedia, the risk of a collision is much higher than for MD5 hashes. I assume it can't be the speed on modern computers. |
@jens-duttke for perf reasons, webpack also uses md4 for hashing
No, not in out cases |
Can you explain why please? |
when you retire an outdated hash algo due security concerns, then this security concern would be also the best reason to switch to sha256 algo or better immeditaly. In contrast, I cant see the reason for md4 at all. btw, md5 is deprecated by experts since And wrt md4, quote wikipedia:
Will |
I'd assume what @evilebottnawi meant is that since the hash is used for caching purposes (not cryptographic purposes) it doesn't matter if there's a high collision risk, because the consequences in the event of a collision are close to nil. However a non-cryptographic hash function such as xxHash would be much better suited to this use-case than an obsolete cryptographic hashing function, and would most likely be even faster. It would be nice to get some insight into the reasoning behind this change from the maintainer themselves. |
Yes
yes, but we can't use it because it is require library compilation and can incompatibility with some platforms Why
So using |
This change is marked as breaking change. How to adjust file-loader to comply with this change? |
@tomaszs I do not know the intention of the library authors for sure, but I guess they chose to bump the major version, because the build result will be different and so all caches will be invalidated. So I think there is no change necessary and you can simply update (this is what I did). |
BREAKING CHANGE: use
md4
by default for hashingThis PR contains a:
Motivation / Use-Case
Use
md4
by default for perf reasonsBreaking Changes
Yes
Additional Info
No