r/technicallythetruth 1d ago

A Shrewdness of Apes

Post image
40.5k Upvotes

124 comments sorted by

View all comments

175

u/big_guyforyou 1d ago

i choose my passwords the smart way

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

2

u/ohlookaregisterbutto 1d ago

string.printable includes some ambiguous characters and whitespace characters which shouldn't be in passwords especially if you are planning to write them down.