https://www.autoproctor.co/tests/3QN8wiIbFN/load
top of page
bottom of page
const CLIENT_ID = B5wutw8y; // INSERT YOUR ID HERE!!!! const CLIENT_SECRET = 0k5SERS7oUux0dq; // INSERT YOUR SECRET HERE!!!! const getTestAttemptId = () => Math.random().toString(36).slice(2, 7); function getHashTestAttemptId(testAttemptId) { if (CLIENT_SECRET === null) { return null; } else { const secretWordArray = CryptoJS.enc.Utf8.parse(CLIENT_SECRET); const messageWordArray = CryptoJS.enc.Utf8.parse(testAttemptId); const hash = CryptoJS.HmacSHA256(messageWordArray, secretWordArray); const base64HashedString = CryptoJS.enc.Base64.stringify(hash); return base64HashedString; } } function getCredentials() { const testAttemptId = getTestAttemptId(); const hashedTestAttemptId = getHashTestAttemptId(testAttemptId, CLIENT_SECRET); const creds = { clientId: CLIENT_ID, testAttemptId: testAttemptId, hashedTestAttemptId: hashedTestAttemptId }; return creds; } const getReportOptions = () => { return { groupReportsIntoTabs: true, userDetails: { name: "First Last", email: "[email protected]" } }; };