Codes that keep changing
The QR on the phone is a small signed message that is only good for a moment and only once. A photo of it is worth nothing a few seconds later.
How you set it up
- The phone makes its own key When a person connects, the phone creates a signing key and keeps the private half inside. Only the public half goes to Qravix.
- It signs a fresh message The message names the credential, the time and a random number. The phone signs it with ECDSA P-256 and shows it as a QR code.
- The reader sends it to Qravix Qravix checks the signature against the stored public key, checks that the time is within the window, and that the random number was never seen before.
- The answer is allow or deny A deny says nothing about the person. An allow names the credential so your system can act on it.
What you can change
- Window A code is valid for 15 to 60 seconds, 30 by default. A shorter window is stricter, a longer one forgives slow clocks.
- Single use Each code is accepted once. A second scan of the same code is refused as a replay.
- PIN at connection Require a PIN when a phone is connected, so a leaked connection code alone is not enough.
- Phones per person Set how many phones may be connected to one credential, and revoke a lost phone without touching the person.
- Open format The token layout is public and the library that mints and verifies it is open source.
Good to know
Because the private key never leaves the phone, stealing the server’s database does not let anyone make a valid code.