Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active May 29, 2017 20:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ericboehs/0207d14c56538bd84a01 to your computer and use it in GitHub Desktop.
Save ericboehs/0207d14c56538bd84a01 to your computer and use it in GitHub Desktop.
Generating a WPA PSK hex key in Ruby
require 'openssl'
ssid = 'Delorean'
passphrase = 'hoverboardsdonotworkonwater'
puts OpenSSL::PKCS5.pbkdf2_hmac_sha1(passphrase, ssid, 4096, 32).unpack("H*").first
@ericboehs
Copy link
Author

@colszowka
Copy link

Thanks @ericboehs, this was very handy :)

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