AES-256-GCM v2 · TiDB Cloud · Email OTP Auth

License keys on your own stack. Private workspace per developer.

Psycho Key manages products, keys, firmware HWID locking, live client sessions, blacklists, and cloud variables — with fast Email OTP verification and 2FA.

AES-256-GCMRequest & response bound via AAD
±120s + NonceStrict clock window & replay cache
Live KickSingle-use JTI token rotation
// https://psycho-key.com/api/v1.php
psycho::Client client({
  "https://psycho-key.com",
  "psycho-key",
  "API_SECRET",
  "1.0.0",
  "",   // optional TLS cert SHA-256 pin
  true, // anti-debug
  true  // require v2 AES-GCM only
});

auto res = client.auth(key);
if (!res.ok) return 1;
auto discord = client.var("discord_invite");
auto hb = client.heartbeat();
# Protocol v2 (AES-256-GCM + HKDF-SHA256 + HMAC)
req_key  = hkdf_sha256(secret, b"psychokey-salt-v1", f"psychokey-req-v2|{app}")
resp_key = hkdf_sha256(secret, b"psychokey-salt-v1", f"psychokey-resp-v2|{app}")

canonical = f"{app}|{action}|{nonce}|{ts}|{hwid}|{key}|{token}"
sig = hmac_sha256(secret, canonical)
inner = {"action": action, "nonce": nonce, "ts": ts, "version": "1.0.0", ...}
envelope = {"app": app, "v": 2, **aes_gcm_encrypt(req_key, inner, aad=app)}

Built for real production control

Every capability here runs live on the server, database, and client SDK.

01

Batch Keys & Export

Generate up to 1,000 keys at once (minutes, hours, days, or lifetime) with bulk actions and CSV export.

02

Firmware HWID Lock

Combines SMBIOS UUID, board serial, disk serial, and CPU signature — survives OS reinstalls.

03

Live Sessions & Kick

Single-use rotating JTI tokens tracked in DB. Kick any connected machine on its next heartbeat.

04

HWID & IP Blacklist

Block abusive machines or IPs globally or per product with optional timed expiry.

05

Cloud App Variables

Deliver encrypted key/value settings on init or only after license authentication.

06

Version & Maintenance

Enforce minimum client version with update URL or toggle maintenance mode per product.

07

Private Workspace + OTP + 2FA

Each developer gets an isolated dashboard with instant Email OTP verification, Argon2id & 2FA.

08

Resellers & Webhooks

Per-product reseller pricing & balance deduction plus SSRF-hardened HMAC webhooks.

Defense in depth by design

Authoritative server verification paired with end-to-end authenticated encryption.

Server-side guarantees

  • Strict v2: Products default to AES-256-GCM v2 only, blocking legacy fallback.
  • Early Rate Limit: IP rate limits & blacklists trigger before crypto or heavy DB work.
  • Token Rotation: Each heartbeat rotates JTI atomically; superseded tokens fail immediately.
  • Encrypted at rest: Lookup via SHA-256; display copy authenticated with AES-256-CBC + HMAC.

Client SDK hardening

  • Zero plaintext trust: Rejects unencrypted success payloads, AAD mismatches, and stale timestamps.
  • TLS Pinning: Optional DER certificate SHA-256 pin verified inside WinHTTP.
  • Anti-Debug & PK_OBF: NtQueryInformationProcess checks + compile-time XOR string obfuscation.
  • Version gate: Sends encrypted version inside payload and handles update/maintenance codes.

Three steps to integrate

Your console and API are ready on your custom domain.

01

Configure product

Create your product and copy the hand-off block or generated .hpp header.

02

Generate keys

Pick duration & HWID slots, plus optional cloud variables and version lock.

03

Ship with SDK

Include sdk/psychokey.hpp and guard execution with auth() and heartbeat().

Ready to deploy

Check live health at /api/health.php or review the protocol documentation.