Created
June 8, 2022 03:47
-
-
Save wrouesnel/969a9e3f451179fc69a760c36da3b4e5 to your computer and use it in GitHub Desktop.
128 bit ID in b32 lowercase with no special characters
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
# Generate a 128-bit identifier, encoded entirely in b32 lowercase. No special characters. | |
function safeid() { | |
python3 -c 'import uuid, base64 ; print(base64.b32encode(uuid.uuid4().bytes).lower().rstrip(b"=").decode())' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment