This commit is contained in:
luk
2026-07-30 11:50:39 +08:00
parent eb0fc96d5d
commit 0eb30b6361
5 changed files with 312 additions and 2 deletions

12
md5.js Normal file
View File

@@ -0,0 +1,12 @@
// convert plain text password to 32bit MD5 encrypted hexadecimal to be used in FutuOpenD.xml
// usage: node md5.js "your_password_here"
const crypto = require('crypto')
function md5Hex32 (str) {
return crypto.createHash('md5').update(String(str), 'utf8').digest('hex') // 32 hex chars
}
// Example:
const password = process.argv[2] || 'your_password_here'
console.log(md5Hex32(password))