We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33af4ea commit 7983813Copy full SHA for 7983813
1 file changed
src/compiler/sys.ts
@@ -632,7 +632,7 @@ namespace ts {
632
getModifiedTime,
633
setModifiedTime,
634
deleteFile,
635
- createHash: _crypto ? createMD5HashUsingNativeCrypto : generateDjb2Hash,
+ createHash: _crypto ? createSHA256Hash : generateDjb2Hash,
636
createSHA256Hash: _crypto ? createSHA256Hash : undefined,
637
getMemoryUsage() {
638
if (global.gc) {
@@ -1125,12 +1125,6 @@ namespace ts {
1125
}
1126
1127
1128
- function createMD5HashUsingNativeCrypto(data: string): string {
1129
- const hash = _crypto!.createHash("md5");
1130
- hash.update(data);
1131
- return hash.digest("hex");
1132
- }
1133
-
1134
function createSHA256Hash(data: string): string {
1135
const hash = _crypto!.createHash("sha256");
1136
hash.update(data);
0 commit comments