Skip to content

Commit dab42a8

Browse files
Add files via upload
1 parent 41b6ba1 commit dab42a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

WPA-PSK-GEN/wpa-psk-gen.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/env python3
2+
from passlib.utils import pbkdf2
3+
import binascii, sys
4+
5+
# usage wpa-psk-genpy <Passphrase> <SSID>
6+
try :
7+
print("PSK = ",binascii.hexlify(pbkdf2.pbkdf2(str.encode(sys.argv[1]), str.encode(sys.argv[2]), 4096, 32)).decode("utf-8"))
8+
9+
except:
10+
print("Usage wpa-psk-genpy <Passphrase> <SSID>")

0 commit comments

Comments
 (0)