Skip to content

Instantly share code, notes, and snippets.

Avatar
Brewing coffee

Abe Estrada AbeEstrada

Brewing coffee
View GitHub Profile
@AbeEstrada
AbeEstrada / wpa_passphrase.rb
Created May 29, 2017 — forked from ericboehs/wpa_passphrase.rb
Generating a WPA PSK hex key in Ruby
View wpa_passphrase.rb
require 'openssl'
ssid = 'Delorean'
passphrase = 'hoverboardsdonotworkonwater'
puts OpenSSL::PKCS5.pbkdf2_hmac_sha1(passphrase, ssid, 4096, 32).unpack("H*").first