Skip to content

Instantly share code, notes, and snippets.

@bergantine
Last active October 7, 2026 16:13
Show Gist options
  • Select an option

  • Save bergantine/1119284 to your computer and use it in GitHub Desktop.

Select an option

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)])"
@k0lp4tzki

Copy link
Copy Markdown

Long time ago. And its not correctly escaped.

python3 -c "from secrets import choice; print (''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789%^*(-_=+)') for i in range(32)]))"

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