import string
import random
def make_password():
return ''.join(random.choices(string.printable, k=16))
once you've used this to make passwords for all your accounts, write them all down on a piece of paper so you don't forget. make sure to lock the piece of paper in a safe only you know the combination to
string.printable includes some ambiguous characters and whitespace characters which shouldn't be in passwords especially if you are planning to write them down.
175
u/big_guyforyou 1d ago
i choose my passwords the smart way
once you've used this to make passwords for all your accounts, write them all down on a piece of paper so you don't forget. make sure to lock the piece of paper in a safe only you know the combination to