1#import hashlib
2from pbkdf2 import PBKDF2
3ssid = 'cyberpunk'
4pass= 'theone'
5
6print "Pairwise Master Key (PMK): " + PBKDF2(phrase, ssid, 4096).read(32).encode("hex"))
7
8# ALTERNATIVE
9# pmk = hashlib.pbkdf2_hmac('sha1', passphrase, SSID.encode(), 4096, 32)