Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions passgen.py
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
import random
chars = ("abcdefghijklmnopqrstuvwxyz1234567890")
try:
anzahl = int(input("Wie viel Passwörter willst du haben?"))
except:
anzahl = 1
print("Variable muss eine Zahl sein... autoassigned: 1")
try:
länge = int(input("passwort länge ?"))
except:
länge = 13
print("Länge muss eine Zahl sein, autoassigned: 13")
for i in range(anzahl):
passwort ="".join(random.choices(chars,k = länge))
print(passwort)
import random;a,l=int(input("Amount:") or "1"), int(input("Length:") or "12");[print ("".join(random.choices("abcdefghijklmnopqrstuvwxyz1234567890",k=l))) for _ in range(a)]