Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python Random Password Generator (One Liner). #python #password
python -c "from random import choice; print ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789%^*(-_=+)') for i in range(32)])"
@kaytwo

This comment has been minimized.

Copy link

@kaytwo kaytwo commented Jul 8, 2015

Can you pull in https://gist.github.com/kaytwo/62049fe07eb5b68fbd9e ? This is my top google result for python password one liner and uppercase letters are required a few places.

@violentmagician

This comment has been minimized.

Copy link

@violentmagician violentmagician commented Apr 15, 2019

Updated for python 3.6

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.