Last active
May 29, 2017 20:28
-
-
Save ericboehs/0207d14c56538bd84a01 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
Thanks @ericboehs, this was very handy :)