isch hab comitted

This commit is contained in:
holger.trampe 2019-12-13 10:07:29 +01:00
parent 48e8c3e97a
commit 0efd7e11ea
3 changed files with 8 additions and 6 deletions

View File

@ -4,14 +4,16 @@ from users.models import Profile,Agency
import random
import string
def randomStringwithDigitsAndSymbols(stringLength=10):
"""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"
password = randomStringwithDigitsAndSymbols(20)
password = ""
i = 0
while(i < 20):
password += random.choice(password_characters)
i++
print("USERNAME: " + username)
print("PASSWORD: " + password)
ag=Agency()