2021-07-16 02:00:01 +00:00
|
|
|
from random import seed
|
|
|
|
from random import randint
|
|
|
|
import time
|
|
|
|
|
|
|
|
seed(int(time.time()))
|
|
|
|
|
|
|
|
|
|
|
|
def get_random_value(list_length):
|
|
|
|
random_select = randint(0, list_length)
|
|
|
|
return random_select
|
|
|
|
|
2021-07-16 23:45:11 +00:00
|
|
|
|
|
|
|
def get_random_password():
|
2021-07-16 02:00:01 +00:00
|
|
|
|
|
|
|
first_part = [
|
|
|
|
"Der Vogel",
|
|
|
|
"Die Ameise",
|
|
|
|
"Die Biene",
|
|
|
|
"Ein Mensch",
|
|
|
|
"Jemand",
|
2021-07-16 23:45:29 +00:00
|
|
|
"Der Hund",
|
|
|
|
"Der Kater",
|
2021-07-16 02:00:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
second_part = [
|
2021-07-21 22:02:57 +00:00
|
|
|
"%",
|
|
|
|
"(",
|
|
|
|
")",
|
|
|
|
"$",
|
|
|
|
"+",
|
|
|
|
"!",
|
|
|
|
]
|
|
|
|
|
|
|
|
third_part = [
|
2021-07-16 02:00:01 +00:00
|
|
|
"frisst",
|
|
|
|
"küsst",
|
|
|
|
"begrüsst",
|
2021-07-16 23:45:29 +00:00
|
|
|
"besucht",
|
|
|
|
"beeinflusst",
|
|
|
|
"isst",
|
|
|
|
"findet",
|
|
|
|
"vergisst",
|
2021-07-16 02:00:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
forth_part = [
|
2021-07-21 22:02:57 +00:00
|
|
|
"1 Vogel!",
|
|
|
|
"2 Vögel!",
|
|
|
|
"3 Vögel!",
|
|
|
|
"4 Vögel!",
|
|
|
|
"5 Vögel!",
|
|
|
|
"6 Vögel!",
|
|
|
|
"7 Vögel!",
|
|
|
|
"8 Vögel!",
|
|
|
|
"9 Vögel!",
|
|
|
|
"1 Mücke",
|
|
|
|
"2 Mücken!",
|
|
|
|
"3 Mücken!",
|
|
|
|
"4 Mücken!",
|
|
|
|
"5 Mücken!",
|
|
|
|
"6 Mücken!",
|
|
|
|
"7 Mücken!",
|
|
|
|
"8 Mücken!",
|
|
|
|
"9 Mücken!",
|
|
|
|
"1 Adler",
|
|
|
|
"2 Adler!",
|
|
|
|
"3 Adler!",
|
|
|
|
"4 Adler!",
|
|
|
|
"5 Adler!",
|
|
|
|
"6 Adler!",
|
|
|
|
"7 Adler!",
|
|
|
|
"8 Adler!",
|
|
|
|
"9 Adler!",
|
|
|
|
"1 Apfel",
|
|
|
|
"2 Äpfel!",
|
|
|
|
"3 Äpfel!",
|
|
|
|
"4 Äpfel!",
|
|
|
|
"5 Äpfel!",
|
|
|
|
"6 Äpfel!",
|
|
|
|
"7 Äpfel!",
|
|
|
|
"8 Äpfel!",
|
|
|
|
"9 Äpfel!",
|
|
|
|
"1 Birne",
|
|
|
|
"2 Birnen!",
|
|
|
|
"3 Birnen!",
|
|
|
|
"4 Birnen!",
|
|
|
|
"5 Birnen!",
|
|
|
|
"6 Birnen!",
|
|
|
|
"7 Birnen!",
|
|
|
|
"8 Birnen!",
|
|
|
|
"9 Birnen!",
|
|
|
|
"1 Biene",
|
|
|
|
"2 Bienen!",
|
|
|
|
"3 Bienen!",
|
|
|
|
"4 Bienen!",
|
|
|
|
"5 Bienen!",
|
|
|
|
"6 Bienen!",
|
|
|
|
"7 Bienen!",
|
|
|
|
"8 Bienen!",
|
|
|
|
"9 Bienen!",
|
|
|
|
"1 Gurke",
|
|
|
|
"2 Gurken!",
|
|
|
|
"3 Gurken!",
|
|
|
|
"4 Gurken!",
|
|
|
|
"5 Gurken!",
|
|
|
|
"6 Gurken!",
|
|
|
|
"7 Gurken!",
|
|
|
|
"8 Gurken!",
|
|
|
|
"9 Gurken!",
|
2021-07-16 02:00:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
password = ""
|
|
|
|
password += str(first_part[get_random_value(len(first_part)-1)])
|
|
|
|
password += " " + str(second_part[get_random_value(len(second_part)-1)])
|
|
|
|
password += " " + str(third_part[get_random_value(len(third_part)-1)])
|
2021-07-21 22:02:57 +00:00
|
|
|
password += " " + str(forth_part[get_random_value(len(forth_part)-1)])
|
2021-07-16 02:00:01 +00:00
|
|
|
|
2021-07-16 23:45:11 +00:00
|
|
|
return password
|