Post-quantum cryptography
Quantum computers can’t break today’s encryption yet, but someday they might. The risk is already real: someone could record an encrypted conversation today and try to open it a few years from now.
That’s why KeyFox uses the post-quantum standards published by NIST in 2024: ML-KEM-768 (FIPS 203) for key agreement and ML-DSA-65 (FIPS 204) for signatures.
A sealed envelope for anything sensitive
Sign-in, sign-up, device pairing, session renewal and PIN travel in a dedicated envelope (the KFPQ-1 protocol): a fresh key is agreed with ML-KEM-768 for every request, derived with HKDF-SHA256 and used with AES-256-GCM.
Each envelope is valid only once and only for a few minutes — replaying a recorded request doesn’t work. The server’s encryption key rotates every 24 hours.
Underneath that, the connection uses TLS 1.3 with the X25519MLKEM768 hybrid key exchange whenever the path to the server allows it. That’s two independent layers.
Signatures that prove who’s who
The server signs its access tokens and its own encryption key with ML-DSA-65. The apps verify the signature against the pinned public key before trusting it.
Access tokens last 15 minutes. Refresh tokens rotate on every use; if one that’s already been used shows up again, the whole chain is revoked — a sign that someone tried to copy it.
Password-free devices
Each device (your child’s phone, iPhone, PC, the parent’s phone) creates its own ML-DSA-65 key and keeps it in the system’s secure vault: Android Keystore on Android and DPAPI on Windows.
To sign in, the device signs a challenge from the server. No password is stored on your child’s device. Removing a device in the dashboard revokes its access instantly.
Passwords, PIN and dashboard
Passwords and the family PIN are stored with Argon2id (64 MiB of memory, 3 passes), an algorithm designed to make guessing attacks expensive. The PIN allows 5 attempts every 15 minutes.
In the web dashboard, the session lives in protected cookies (httpOnly, Secure, SameSite=Strict) that the page’s JavaScript can’t read.
Sign-in and pairing routes have per-address attempt limits.
Points that can’t be faked
XP, coins, level, achievements and stage unlocks are calculated on the server from logged missions — the device can’t give itself points.
The phone and PC check the day’s rule frequently and keep the latest one so they keep working offline.
Technical summary
| Use | Algorithm |
|---|---|
| Envelope key exchange | ML-KEM-768 (FIPS 203) |
| Token and server signatures | ML-DSA-65 (FIPS 204) |
| Per-device identity | ML-DSA-65 |
| Key derivation and encryption | HKDF-SHA256 + AES-256-GCM |
| Passwords and PIN | Argon2id |
| Transport | TLS 1.3 · X25519MLKEM768 (hybrid) |
Privacy and LGPD
We collect the minimum KeyFox needs to work, and we explain why we need each piece of data.
| Data | What for | How long |
|---|---|---|
| Parent’s email and name | Create and protect the family account | As long as the account exists |
| Child’s name (birth year optional) | Show missions, levels and titles | As long as the account exists |
| Completed missions (routines, quizzes, lessons, focus, reading) | Calculate XP and coins and unlock stages | As long as the account exists |
| Screen time per app (Android) and per program (PC) | Show usage to parents and enforce limits | 90 days |
| Sites opened in the Android phone’s browser (just the site address, time and duration) | Block the sites of blocked apps and show them to parents | 14 days |
| Paired devices (name, type, public key) | Know which devices speak for the family | Until the device is removed |
- On iPhone, screen time is shown only on the device (Apple’s rule). The server only learns how many apps are in each stage, never which ones.
- Under the LGPD (Brazil’s General Data Protection Law), you can request access to, correction of and deletion of your family’s data. Contact details are in the Privacy Policy.
- Found a security flaw? Let us know through the contact listed in the Privacy Policy. We appreciate responsible disclosure.