Skip to content

Instantly share code, notes, and snippets.

@nihal111
Last active November 3, 2018 11:53
Show Gist options
  • Save nihal111/56a0317fb61596cd17f2bb080591ba40 to your computer and use it in GitHub Desktop.
Save nihal111/56a0317fb61596cd17f2bb080591ba40 to your computer and use it in GitHub Desktop.
Connect to IITB-Wireless through RPi. This config can be used to connect to any WPA2 Enterprise network in general. Just change the ssid, identity and password fields.
network={
ssid="IITB-Wireless"
scan_ssid=1
key_mgmt=WPA-EAP
identity="<your_username>"
password="<your_password>"
eap=PEAP
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
@nihal111
Copy link
Author

nihal111 commented Feb 2, 2018

It is a bad idea to leave the password in the config in plain-text.
Described below is a method to use a hash in place of the plain-text password as described above.

In bash, execute the below line-
echo -n plaintext_password_here | iconv -t utf16le | openssl md4
(UTF-16LE for macOS)

The password in the wpa_supplicant.conf file then needs to be set to-
password=hash:generated_hash

It would also be a nice idea to clear the bash history after you're done with the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment