password-generator 1.0

This commit is contained in:
Philipp
2026-04-21 16:36:18 +02:00
commit 3b29657c5f
4 changed files with 135 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#imports
import subprocess
#selection
while True:
print("choice password-layout")
print("[1] every ascii-characters")
print("[2] only numbers")
print("[3] just with normol special characters")
print("[4] quit")
#dict and variable
files = {
1: "every.py",
2: "numbers.py",
3: "onlynormal.py",
}
try:
choiced = int(input())
if choiced == 4:
break
if choiced in files:
filename = files[choiced]
subprocess.run(["python3", filename])
else:
print("Not in the list")
except ValueError:
print("choice one of the numbers above")