updated genpw.py

This commit is contained in:
xpk
2019-01-22 17:16:41 +08:00
parent c5e15a22c9
commit 0c11fbc500
+8 -5
View File
@@ -1,11 +1,14 @@
#!/usr/bin/env python3
import string
import crypt
import threading
from random import *
characters = string.ascii_letters + "~@#$%^&*()-_+=23456789"
characters = string.ascii_letters + "~@#%^*()-_+=23456789"
for i in range(0,4):
password = "".join(choice(characters) for x in range(randint(10, 15)));
def genOne():
password = "".join(choice(characters) for x in range(randint(12, 16)));
salt = crypt.mksalt(method=crypt.METHOD_SHA512);
print (password);
print (crypt.crypt(password,salt=salt));
print (password, "|", crypt.crypt(password,salt=salt));
for i in range(4):
threading.Thread(target=genOne, args=()).start()