gRand
gRand is a random string generator.
It supports:
- alphanumeric (uppercase, lowercase, mixed)
- alphabetic (uppercase, lowercase, mixed)
- hex (uppercase, lowercase, mixed)
- numeric
- uuid (uppercase, lowercase)
Installation
There are several ways to download and install the grand
client.
Binary Releases
The preferred method is to download the latest binary release for your platform from the Github Releases section.
Using Docker
If you already use Docker, gRand is packaged into a very small, OS-less image (~1.5 Mb compressed, 4 Mb uncompressed). To learn more about the Docker image, see the Github Packages section.
Basic usage
docker run --rm -it ghcr.io/thoom/grand
Using Go
Finally, you can also just build it directly on your machine if you already have Go installed:
go install github.com/thoom/grand@latest
Usage
-case string
upper, lower, mixed (default "mixed")
-length int
Length of the string (default 32)
-repeat int
number of times to run (default 1)
-type string
alphanum, alpha, hex, num, uuid (default "alphanum")
-version
current version