isch hab comitted
This commit is contained in:
parent
48e8c3e97a
commit
0efd7e11ea
14
firstrun.py
14
firstrun.py
|
|
@ -4,14 +4,16 @@ from users.models import Profile,Agency
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
|
||||||
def randomStringwithDigitsAndSymbols(stringLength=10):
|
password_characters = string.ascii_letters + string.digits + string.punctuation
|
||||||
"""Generate a random string of letters, digits and special characters """
|
|
||||||
|
|
||||||
password_characters = string.ascii_letters + string.digits + string.punctuation
|
|
||||||
return ''.join(random.choice(password_characters) for i in range(stringLength))
|
|
||||||
|
|
||||||
username = "root"
|
username = "root"
|
||||||
password = randomStringwithDigitsAndSymbols(20)
|
password = ""
|
||||||
|
|
||||||
|
i = 0
|
||||||
|
while(i < 20):
|
||||||
|
password += random.choice(password_characters)
|
||||||
|
i++
|
||||||
|
|
||||||
print("USERNAME: " + username)
|
print("USERNAME: " + username)
|
||||||
print("PASSWORD: " + password)
|
print("PASSWORD: " + password)
|
||||||
ag=Agency()
|
ag=Agency()
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue