File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
playground-examples/scripts Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const gravatarURLForAuthor = (email) => {
3939 return "https://avatars.githubusercontent.com/u/49038?s=100&u=0b9ac5bf42a8ea2543a05191e150e0213456744e&v=4" ;
4040
4141 default :
42- return crypto . createHash ( "md5 " ) . update ( email ) . digest ( "hex" ) ;
42+ return crypto . createHash ( "sha256 " ) . update ( email ) . digest ( "hex" ) ;
4343 }
4444} ;
4545
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const getFilePaths = folderPath => {
2626 * @property {string } title - name
2727 * @property {string } lang - the language for the example
2828 * @property {number } sortIndex - when listing the objects
29- * @property {string } hash - the md5 of the content
29+ * @property {string } hash - the sha512 of the content
3030 * @property {any } compilerSettings - name
3131 */
3232
@@ -96,7 +96,7 @@ langs.forEach(lang => {
9696 . replace ( / \+ / g, "-" ) ,
9797
9898 sortIndex : index ,
99- hash : crypto . createHash ( "md5 " ) . update ( contents ) . digest ( "hex" ) ,
99+ hash : crypto . createHash ( "sha512 " ) . update ( contents ) . digest ( "hex" ) ,
100100
101101 compilerSettings : compiler ,
102102 } ;
You can’t perform that action at this time.
0 commit comments