568 B
568 B
Génération chaine de caractères aléatoires
import random
import string
# get random password pf length 8 with letters, digits, and symbols
len_ = 20
characters = string.ascii_letters + string.digits + string.punctuation
print(f"Random password is: \"{''.join(random.choice(characters) for i in range(len_))}\"")
Random password is: "'f#babNz3u&P|ctLy7WZ"