toolkit / password
k4d3's picture
Initial commit
f1a2ec8
raw
history blame
387 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import string
def generate_password(length=16):
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for _ in range(length))
return password
# Generate a strong 16-character long password
strong_password = generate_password()
print(strong_password)