https://github.com/pardeike/movingqrcode
https://github.com/pardeike/movingqrcode
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pardeike/movingqrcode
- Owner: pardeike
- Created: 2025-03-20T18:37:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T18:43:03.000Z (over 1 year ago)
- Last Synced: 2025-09-28T20:51:39.517Z (9 months ago)
- Language: Go
- Size: 2.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
How to Use
Start the Server:
Build and run the server program. It will print out the session seed (session ID and secret) and then wait for QR code input.
go build -o server main.go
./server
Generate QR Codes:
In another terminal, build and run the client program. Supply the session ID and secret (as printed by the server) via flags.
go build -o client main.go
./client -session= -secret=
The client will output 10 iterations (one per second). Choose one of these (copy the entire CSV string).
Submit the QR Code:
Paste the chosen QR code content into the server’s prompt and hit Enter. The server will verify the token and print whether it is valid or not. Regardless of the result, the session is invalidated after the first submission.
This implementation uses a single initial seed call, generates animated QR code tokens that change every second and enforces a 10‑second validity window.