Skip to content

Instantly share code, notes, and snippets.

@bergantine
Last active June 4, 2022 16:42
Show Gist options
  • Save bergantine/1119284 to your computer and use it in GitHub Desktop.
Save bergantine/1119284 to your computer and use it in GitHub Desktop.
Python Random Password Generator (One Liner). #python #password
python -c "from random import choice; print ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789%^*(-_=+)') for i in range(32)])"
@kaytwo
Copy link

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.

@urjeetpatel
Copy link

Updated for python 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment