Guides
Xaor Cryptographic Engine
Secure player scores and prevent client-side spoofing attacks using Boofer's built-in Xaor encryption engine.
Overview
Xaor is an open-source high-performance cryptographic engine developed by Shaadow Platforms. The Boofer app uses Xaor to sign sessions and scores, creating tamper-proof tokens that your backend servers can verify without making expensive external API requests.
Verifying Tokens on Your Backend
First, obtain the secure token from the client-side game via the SDK:
const { token } = await Boofer.getSessionToken();
// Send this token to your backendThen, verify it on your server using the xaorjs or other language engines:
server.js
import { verify } from 'xaorjs'
// Verify token using your developer console secret key
const isValid = verify(token, process.env.BOOFER_DEVELOPER_SECRET);
if (isValid) {
// Score is authenticated and untampered
}