python script for generating password and SHA512 hash
This commit is contained in:
parent
d78abf73fc
commit
6026c69644
14
myrandom.py
Executable file
14
myrandom.py
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import string
|
||||||
|
import crypt
|
||||||
|
import threading
|
||||||
|
from random import *
|
||||||
|
characters = string.ascii_letters + "~@#%^*()-_+=23456789"
|
||||||
|
|
||||||
|
def genOne():
|
||||||
|
password = "".join(choice(characters) for x in range(randint(12, 16)));
|
||||||
|
salt = crypt.mksalt(method=crypt.METHOD_SHA512);
|
||||||
|
print (password, "|", crypt.crypt(password,salt=salt));
|
||||||
|
|
||||||
|
for i in range(4):
|
||||||
|
threading.Thread(target=genOne, args=()).start()
|
Loading…
Reference in New Issue
Block a user