-
-
Save BrianHoldsworth/8654793 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
head -n 4096 /dev/urandom | openssl md5 | base64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generates a random hash from the command-line by hashing random data with MD5, then Base 64 encoding the result. The result might be useful for things like random API tokens. It is 128 bits in length.