const crypto = require('crypto');
const LOGIN_USER = 'admin';
const LOGIN_PASS = 'BugTreat2024';
const u = 'admin';
const p = 'BugTreat2024';
const userOk = crypto.timingSafeEqual(Buffer.from(u.padEnd(64)), Buffer.from(LOGIN_USER.padEnd(64)));
const passOk = crypto.timingSafeEqual(Buffer.from(p.padEnd(64)), Buffer.from(LOGIN_PASS.padEnd(64)));
console.log('User match:', userOk);
console.log('Pass match:', passOk);
console.log('ENV QA_USER:', process.env.QA_USER);
console.log('ENV QA_PASS:', process.env.QA_PASS);
