import string from random import * characters = string.ascii_letters + string.punctuation + string.digits password = "".join(choice(characters) for x in range(randint(8, 16))) print (password)
@gowthamkaarthik5250 Жыл бұрын
but legends wil do import string upper = string.ascii_uppercase lower = string.ascii_lowercase instead of typing all aplhabets time waste
@kodeology Жыл бұрын
Thanks that's what I was actually looking for.
@onlylars Жыл бұрын
@@kodeology Also don't use random it's not really random
@ymctrading8955 Жыл бұрын
0:00
@plashplash-fg6hd Жыл бұрын
Okeyyy
@hossinmawdah9585 Жыл бұрын
name of the song please
@iteachcyber5713 Жыл бұрын
But if data breach happens the password can technically be “hacked”
@kodeology Жыл бұрын
True
@andrescamilo7406 Жыл бұрын
random is not cryptographically efficient, your passwords are easily hacked using brute force
@firozkamdar6735 Жыл бұрын
Warning: never use Random module for password generation.
@momaizgamer Жыл бұрын
why?
@firozkamdar6735 Жыл бұрын
@@momaizgamer people say the numbers generated are not truly random from random module.
@user-bd3nq4tg8r Жыл бұрын
import string from random import * characters = string.ascii_letters + string.punctuation + string.digits password = "".join(choice(characters) for x in range(randint(8, 16))) print (password)