Skip to content

Instantly share code, notes, and snippets.

@jenslohmann
Created December 5, 2017 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenslohmann/819d5814ab601796e2b1b7a9dff4b52a to your computer and use it in GitHub Desktop.
Save jenslohmann/819d5814ab601796e2b1b7a9dff4b52a to your computer and use it in GitHub Desktop.
Poor man's password generator
#!/bin/bash
while pwd=$(openssl rand -base64 9); [[ ${pwd} == *[[:punct:]]* ]]; do :; done; echo ${pwd}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment