md5 function

This commit is contained in:
Ben
2023-10-02 19:49:40 -05:00
parent a99935bab9
commit 974ecf1722

16
utils/wow-md5.ts Normal file
View File

@@ -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}`);
// });