Skip to content

Commit

Permalink
Restored checksum Fixes #241
Browse files Browse the repository at this point in the history
  • Loading branch information
Unthrottled committed Apr 21, 2024
1 parent c8b9a2d commit c581b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CheckSumService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const fixCheckSums = (extensionContext: vscode.ExtensionContext) => {
false
);

console.log(checksumChanged, productFile)
if (checksumChanged) {
const json = JSON.stringify(product, null, "\t");
try {
Expand Down Expand Up @@ -68,7 +69,7 @@ export const restoreChecksum = () => {
function computeChecksum(file: string) {
const contents = fs.readFileSync(file);
return crypto
.createHash("md5")
.createHash("sha256")
.update(contents)
.digest("base64")
.replace(/=+$/, "");
Expand Down

0 comments on commit c581b06

Please sign in to comment.