|
|
|
|
|
|
|
""" |
|
Generate a random strong password with 16 characters. |
|
""" |
|
|
|
import random |
|
import string |
|
|
|
|
|
def generate_password(length=16): |
|
""" |
|
Generate a random password with the given length. |
|
|
|
:param length: Length of the password to generate (default is 16) |
|
:return: A randomly generated password string |
|
""" |
|
characters = string.ascii_letters + string.digits + string.punctuation |
|
password = ''.join(random.choice(characters) for _ in range(length)) |
|
return password |
|
|
|
|
|
|
|
STRONG_PASSWORD = generate_password() |
|
print(STRONG_PASSWORD) |
|
|