-
-
Save AbeEstrada/e9e5783f990166b67cd3911c12fb58ef to your computer and use it in GitHub Desktop.
Generating a WPA PSK hex key in Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
ssid = 'Delorean' | |
passphrase = 'hoverboardsdonotworkonwater' | |
puts OpenSSL::PKCS5.pbkdf2_hmac_sha1(passphrase, ssid, 4096, 32).unpack("H*").first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wpa_supplicant.conf