Created
March 22, 2018 02:32
-
-
Save clong/e6b6ffd972e0905ca739571e655c229d to your computer and use it in GitHub Desktop.
fleet_snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generate a base64 encoded random string with length provided in $1 | |
| function generate_random() { | |
| docker run --rm --entrypoint sh kolide/openssl -c "cat /dev/random | base64 | head -c $1" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment