Password generator - Python Code

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Cloud Rocket
Seçkin Üye
Katılım
13 Ağu 2022
Mesajlar
385
Çözümler
8
Tepki puanı
88
Ödüller
3
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)
 
Seçkin Üye
Katılım
26 Ağu 2021
Mesajlar
408
Tepki puanı
55
Ödüller
5
Yaş
26
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)
what we can use this for?
 
Üye
Katılım
21 Eki 2022
Mesajlar
8
Tepki puanı
2
Yaş
23
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)
W code, great job on that code.

My feedback though:
I remember making something like this, but I also imported string so you didnt have to type all those chars as displayed.

Also love that you used random, but you could have done 'random.shuffle(chars)' instead of 'random.choice(chars)'
After all, its still works and is good code.
 
Cloud Rocket
Seçkin Üye
Katılım
13 Ağu 2022
Mesajlar
385
Çözümler
8
Tepki puanı
88
Ödüller
3
3 HİZMET YILI
but this algorithm passwords are weak can be hacked with the same algorithm lol
Dear friend.
Take the test yourself, try to generate a password with 8 characters and see when it will be able to generate the same password.

Due to the number of characters that we have available in this program, the probability will be 368,640 different combinations.
Let's face it, your comments don't make much sense.
Post automatically merged:

can you add options to it?
Yes on the line:

chars = 'abcdefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ!@$%&0123456789'

You can put what characters you want to generate the password
 
Onaylı Üye
Katılım
7 Şub 2019
Mesajlar
52
Çözümler
1
Tepki puanı
33
Ödüller
3
Yaş
30
7 HİZMET YILI
Dear friend.
Take the test yourself, try to generate a password with 8 characters and see when it will be able to generate the same password.

Due to the number of characters that we have available in this program, the probability will be 368,640 different combinations.
Let's face it, your comments don't make much sense.
Post automatically merged:


Yes on the line:

chars = 'abcdefghijklmnopqrstuvwxyzABCEFGHIJKLMNOPQRSTUVWXYZ!@$%&0123456789'

You can put what characters you want to generate the password
Yes, I tested it in python and it works fine. I think they're skipping where they need to be filled.
 
Üye
Katılım
20 May 2020
Mesajlar
8
Tepki puanı
6
Ödüller
3
Yaş
33
6 HİZMET YILI
wow nice... Thanks Broo .... i will try
Post automatically merged:

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)
wow nice man... i will try
 
Uzman Üye
Katılım
31 Eki 2019
Mesajlar
162
Tepki puanı
17
Ödüller
6
Yaş
32
6 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)
thankuu brother
 
Onaylı Üye
Katılım
16 Eki 2021
Mesajlar
51
Tepki puanı
7
Ödüller
3
Yaş
28
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)
how can use?
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst