Skip to content
Generates hash for wpa_supplicant.conf
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test
.gitignore
README.md
package.json

README.md

Supplicant PSK

CLI program for generating a hash from plain text password for wpa_supplicant.conf. This is useful if you don't have access to a Linux machine and therefore can't use the wpa_passphrase command.

Install

npm install -g supplicant-psk

Running

Run:

$ supplicant-psk [YOUR-SSID] [PLAIN-TEXT-PASSWORD]

The program should output a hash which you can then use on the wpa_supplicant.conf file like so:

network={
  ssid="YOUR-SSID"
  psk=[insert-hash-here]
}

Usage with Raspberry Pi

When setting up a Raspberry Pi 3 with Raspbian Strech, use the following wpa_supplicant.conf file.

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
  ssid="YOUR-SSID"
  psk=[insert-hash-here]
}

Place it on the root directory of the SD card right after burning the ISO. This will allow the device to automatically connect to the wi-fi on first boot.

You can’t perform that action at this time.