Skip to content

Commit

Permalink
updating hash algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
navya9singh committed Jan 30, 2025
1 parent 7d0d042 commit 8e293d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/documentation/scripts/generateAttribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const gravatarURLForAuthor = (email) => {
return "https://avatars.githubusercontent.com/u/49038?s=100&u=0b9ac5bf42a8ea2543a05191e150e0213456744e&v=4";

default:
return crypto.createHash("md5").update(email).digest("hex");
return crypto.createHash("sha512").update(email).digest("hex");
}
};

Expand Down
4 changes: 2 additions & 2 deletions packages/playground-examples/scripts/generateTOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getFilePaths = folderPath => {
* @property {string} title - name
* @property {string} lang - the language for the example
* @property {number} sortIndex - when listing the objects
* @property {string} hash - the md5 of the content
* @property {string} hash - the sha512 of the content
* @property {any} compilerSettings - name
*/

Expand Down Expand Up @@ -96,7 +96,7 @@ langs.forEach(lang => {
.replace(/\+/g, "-"),

sortIndex: index,
hash: crypto.createHash("md5").update(contents).digest("hex"),
hash: crypto.createHash("sha512").update(contents).digest("hex"),

compilerSettings: compiler,
};
Expand Down

0 comments on commit 8e293d2

Please sign in to comment.