Skip to content

Instantly share code, notes, and snippets.

@yyolk yyolk/
Created Feb 12, 2019

What would you like to do?
generates a random psw of 8-16 of length
import string
MIN_LEN, MAX_LEN = 8, 16
from random import randint, choice
characters = string.ascii_letters + string.punctuation + string.digits
password = lambda : "".join(choice(characters) for x in range(randint(MIN_LEN, MAX_LEN)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.