Password generator - Python Code

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Everybody is a genius
Onaylı Üye
Katılım
4 Tem 2022
Mesajlar
60
Tepki puanı
9
Ödüller
2
Yaş
34
4 HİZMET YILI
Hello guys
I created a code to generate passwords if you don't have creativity it can help you a lot.

Follow the code below:

:özellik:
Python:
import random

print('Welcome To your Password Generator')

chars = 'abcdefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ!@$%&0123456789'

number = input('Amount of passwords to generate:')
number = int(number)

length = input('Input your password length: ')
length = int(length)

print('\nhere are your password:')


:catuwu:



for pwd in range(number):
    passwords = ''
    for c in range(length):
        passwords += random.choice(chars)
print(passwords)
LoL your algorithm is easy to *****
 
Onaylı Üye
Katılım
27 Şub 2021
Mesajlar
50
Tepki puanı
6
Ödüller
3
Yaş
36
5 HİZMET YILI
Sifeyi , unutma .olasılığı çok
 
Onaylı Üye
Katılım
13 Ağu 2022
Mesajlar
51
Tepki puanı
4
Ödüller
1
Yaş
24
3 HİZMET YILI
characters you could have done using the string library
 
Onaylı Üye
Katılım
26 Eki 2022
Mesajlar
63
Tepki puanı
69
Ödüller
1
Yaş
25
3 HİZMET YILI
Hello guys
I created a code to generate passwords if you don't have creativity it can help you a lot.

Follow the code below:

:özellik:
Python:
import random

print('Welcome To your Password Generator')

chars = 'abcdefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ!@$%&0123456789'

number = input('Amount of passwords to generate:')
number = int(number)

length = input('Input your password length: ')
length = int(length)

print('\nhere are your password:')


:catuwu:



for pwd in range(number):
    passwords = ''
    for c in range(length):
        passwords += random.choice(chars)
print(passwords)
Nice code Bro, tnx
 
Onaylı Üye
Katılım
10 Eyl 2022
Mesajlar
58
Tepki puanı
1
Ödüller
3
3 HİZMET YILI
like you and other I made on when I first started programming
 
Onaylı Üye
Katılım
16 Tem 2021
Mesajlar
51
Tepki puanı
3
Ödüller
2
Yaş
37
5 HİZMET YILI
Here's a more efficient version of the code:

Python:
import random

print('Welcome To your Password Generator')

chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@$%&0123456789'

number = int(input('Amount of passwords to generate: '))
length = int(input('Input your password length: '))

print('\nHere are your passwords:')

for pwd in range(number):
    password = ''.join(random.choices(chars, k=length))
    print(password)
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst