Generate
Samples use fake data for testing. Avoid uploading real personal/ID data.
Secure Signed QR (recommended)
This creates a QR code containing a signed token (so copied/edited codes fail verification). Keep the barcode payload minimal (e.g., an internal ID), and store sensitive info in your database.
Verifiers only need the public key to validate tokens. Keep the private key secret.
Tips to keep codes scannable
- For 1D codes, increase scale if scans fail.
- For QR/Data Matrix/PDF417, keep a clear quiet zone (border) around the code.
- Test with multiple phones/scanners before printing in bulk.
Preview
Scan with camera
Works best in Chrome/Edge. Allow camera permission when prompted.
Samples use fake data for testing. Avoid uploading real personal/ID data.
Verify signed token
If the scanned text is a signed token, the app will verify it and show the decoded payload.
Camera preview
NFC (optional)
Uses Web NFC (mainly Chrome on Android) and requires HTTPS (GitHub Pages works).