Background
Handing out authorization through card keys is common, but offline it breaks down in two ways: whoever redeems the code has no system to check against, so it is done by eye, and a key reused several times is hard to spot. What is needed is a light tool that works by scanning and can bind a key to a device.
What we did
- Built it as a mini-program, so scanning a code opens the validation flow with nothing to install
- Managed key generation and state: unused, bound and expired are distinct states
- Bound the key to a device once validated, so the same key cannot be reused on several devices
- Returned the result immediately so it can be judged on the spot
Technical approach
| Step | Detail |
|---|---|
| Scan | The mini-program scans the code and opens validation |
| Validate | Look up the key's state and decide whether it is usable |
| Bind device | On success, bind the key to the device |
| Return result | Validation and binding result returned immediately |
Results
| Item | Detail |
|---|---|
| Product form | Our own mini-program |
| Capabilities | Key generation / scan validation / device binding |
| Barrier to use | Scan and go, nothing to install |
| Maintenance | Own product, continuously maintained |
Authorization
Own product; its form and flow are public.