Generate a QR code for the Wi-Fi network your machine is currently connected to. Scan it with any phone camera to join the network instantly — no typing the password.
Works on macOS and Linux.
- Python 3.6+
- Dependencies from
requirements.txt:
pip install -r requirements.txt- macOS:
networksetup,ipconfig,security - Linux:
nmcli(NetworkManager)
python3 entry.pyThe QR code is written to qrcodes/<ssid>.png in the current directory.
Example output:
Active Wi-Fi: 'Topnet'
✓ QR code created: qrcodes/Topnet.png
SSID: Topnet
Auth: WPA
Password: (present)
Payload: WIFI:T:WPA;S:Topnet;P:********;H:false;;