Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from Scrivito/file-loader_6
file-loader 5 => 6
- Loading branch information
Showing
3 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { hash as md5 } from "spark-md5"; | ||
import md4 from "js-md4"; | ||
|
||
/** Generates a 20 long hex value, based the md5 of the given string */ | ||
/** Generates a 20 long hex value, based the md4 of the given string */ | ||
export default async function contentHash(input) { | ||
return md5(input).substr(0, 20); | ||
return md4(input).substr(0, 20); | ||
} |