117 lines
2.3 KiB
Python
117 lines
2.3 KiB
Python
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
|
|
|
|
|
|
def get_random_password():
|
|
|
|
first_part = [
|
|
"Der Vogel",
|
|
"Die Ameise",
|
|
"Die Biene",
|
|
"Ein Mensch",
|
|
"Jemand",
|
|
"Der Hund",
|
|
"Der Kater",
|
|
]
|
|
|
|
second_part = [
|
|
"%",
|
|
"(",
|
|
")",
|
|
"$",
|
|
"+",
|
|
"!",
|
|
]
|
|
|
|
third_part = [
|
|
"frisst",
|
|
"küsst",
|
|
"begrüsst",
|
|
"besucht",
|
|
"beeinflusst",
|
|
"isst",
|
|
"findet",
|
|
"vergisst",
|
|
]
|
|
|
|
forth_part = [
|
|
"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!",
|
|
]
|
|
|
|
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)])
|
|
password += " " + str(forth_part[get_random_value(len(forth_part)-1)])
|
|
|
|
return password
|