From 974ecf1722b4e032c9502104bfa2ccf513b519a9 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 2 Oct 2023 19:49:40 -0500 Subject: [PATCH] md5 function --- utils/wow-md5.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 utils/wow-md5.ts diff --git a/utils/wow-md5.ts b/utils/wow-md5.ts new file mode 100644 index 0000000..5850c06 --- /dev/null +++ b/utils/wow-md5.ts @@ -0,0 +1,16 @@ +// import * as fs from 'fs'; +// import * as crypto from 'crypto'; +// import path from 'path'; + +// const filePath = path.resolve('extraResources/Wow.exe'); // Replace with the path to your file +// const fileStream = fs.createReadStream(filePath); +// const hash = crypto.createHash('md5'); + +// fileStream.on('data', (data) => { +// hash.update(data); +// }); + +// fileStream.on('end', () => { +// const md5Hash = hash.digest('hex'); +// console.log(`MD5 hash of the file: ${md5Hash}`); +// });