python password generator

import random

 

uppercase_letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

lowercase_letter = uppercase_letter.lower()

digits = "0123456789"

symblos = "() [] {} , : ; . - _ / \\ ?+*=# "

 

upper, lower, nums, syms = True, True, True, True

 

all = ""

 

if upper:

    all += uppercase_letter

if lower:

    all += lowercase_letter

if nums:

     all += digits

if syms:

    all += symblos

 

    length = 20

    amount = 10

 

    for x in range(amount):

        password = "". join(random.sample(all, length))

        print(password)


Yorumlar

Bu blogdaki popüler yayınlar

THE KULAKLIK

BİZ Mİ TOPU SEÇERİZ YOKSA TOP Mİ BİZİ SEÇER TOPUN İZİNDE 😂

Abu , Labne, Labubu 😅