qr-password
lifehackjohn 作
DevOps & Cloud概要
Air-gapped credential bridge using QR codes.
説明
このスキルでできること
Transfers credentials between networked and air-gapped devices using QR codes as the transport channel. Supports two directions: generating a QR code from stored credentials for a device to scan, and decoding a QR code from a camera image to extract credentials. Nothing crosses a network.
Using the camera as the credential transport eliminates all network exposure, which no password manager sync or USB transfer can guarantee for truly isolated environments.
使いどころ
- Logging into an air-gapped server with credentials from a password manager
- Moving admin credentials to an isolated lab machine
- Importing credentials printed as a QR code on hardware
- Sharing a vault entry with an offline kiosk
- Transferring a Wi-Fi password to a device with no keyboard
ワークフロー例
User asks: send my database credentials to the air-gapped machine
- 1
Encodes credentials as JSON and pipes to generate-qr.py, writing output to /tmp/qr-out.png
- 2
Displays the QR image on canvas using canvas present
- 3
Waits 30 seconds, then runs canvas hide to clear the display
- 4
Deletes the file with rm /tmp/qr-out.png
- 5
Reports 'QR displayed' to the user without echoing the password
QR code was displayed for 30 seconds and the image file deleted
要件
- Python packages: qrcode, Pillow, opencv-python-headless (install via pip)
インストール
clawhub install lifehackjohn/qr-passwordCLIコマンドを実行するか、Claude Code、Cursor、Codexなどお使いのコーディングエージェントにプロンプトを貼り付けてください。