Auth Code Generator
Generate secure authentication codes.
Project not found. Please check your Project ID and try again.
—
Project ID: —
— — — — — — —
How It Works
1
Enter Project ID
Enter your numeric project identifier to load your project profile and verify ownership.
2
Generate Code
Click Generate to produce a unique 7-digit cryptographic authentication code.
3
Enter in App
Type or paste the 7-digit code into your developer application to gain authenticated access.
Integrate Into Your Project
// JavaScript / Node.js
const PROJECT_ID = "YOUR_PROJECT_ID";
const AUTH_CODE = "YOUR_7_DIGIT_CODE";
async function verifyAuthCode() {
const response = await fetch("https://api.boxxtools.com/v1/auth/verify", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ project_id: PROJECT_ID, code: AUTH_CODE })
});
const data = await response.json();
return data.verified; // true/false
}
// PHP
$project_id = 'YOUR_PROJECT_ID';
$auth_code = 'YOUR_7_DIGIT_CODE';
$payload = json_encode([
'project_id' => $project_id,
'code' => $auth_code
]);
$ch = curl_init('https://api.boxxtools.com/v1/auth/verify');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
$verified = $response['verified']; // true/false
# Python
import requests
PROJECT_ID = "YOUR_PROJECT_ID"
AUTH_CODE = "YOUR_7_DIGIT_CODE"
def verify_auth_code():
response = requests.post(
"https://api.boxxtools.com/v1/auth/verify",
json={
"project_id": PROJECT_ID,
"code": AUTH_CODE
}
)
data = response.json()
return data["verified"] # True/False
Security Best Practices
- Never share your authentication code publicly or commit it to version control.
- Each code should be used once and immediately within your application session.
- Store Project IDs in environment variables, never hardcode them in source files.
- Use HTTPS for all API communication to prevent interception attacks.
- Regenerate codes if you suspect your project credentials have been compromised.