mirror of
https://github.com/araxiaonline/wow-client-patcher.git
synced 2026-06-13 03:12:24 -04:00
md5 function
This commit is contained in:
16
utils/wow-md5.ts
Normal file
16
utils/wow-md5.ts
Normal 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}`);
|
||||
// });
|
||||
Reference in New Issue
Block a user