Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created January 2, 2020 15:08
Show Gist options
  • Save pcolazurdo/0bdb979a30aee114b332431ee11dc432 to your computer and use it in GitHub Desktop.
Save pcolazurdo/0bdb979a30aee114b332431ee11dc432 to your computer and use it in GitHub Desktop.
Generating QR Code for WiFi Access Points
# In Mac you can use:
# /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I
# to find the SSID you are actually connected to
# install qrencode
brew install qrencode
# For WPA2 this will create a wifi.png image that can be used both in Android and iOS devices to auto configure wifi access
SSID="your ssid"; SSID_PASS="your password"; qrencode -o wifi.png "WIFI:S:${SSID};T:WPA2;P:${SSID_PASS};;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment