diff --git a/customscripts/randomtoken b/customscripts/randomtoken index fda1120..829413a 100644 --- a/customscripts/randomtoken +++ b/customscripts/randomtoken @@ -1,12 +1,14 @@ #!/bin/bash # usage: randomtoken [bytes] [mode] # modes: hex, md5, sha1, sha256, sha512, base64, raw +# Example randomtoken 32 hex # requires xxd # handle args and defaults if [ "$#" -ne 2 ]; then echo "Usage: $0 [bytes] [mode]" echo "Modes: hex, md5, sha1, sha256, sha512, base64, raw" + echo "Example: $0 32 hex" exit 1 else bytes=$1