CLI tool to generate random strings using strand package
Supported random types:
- String
- Alpha Mumeric
- Alpha
- Numeric
- URL-safe
- Hexadecimal
- Binary Digits
- Password
- URL-safe Password
- String from custom character list
For installation instructions for binaries, please visit the Releases Page.
$ make
$ make install_<os>_<platform>
eg: For OSX
$ make install_darwin_amd64
Supported OS-Platform values are listed below:
OS | Platform |
---|---|
darwin | amd64 |
linux | amd64 |
386 | |
arm64 | |
arm |
$ strand
$$\ $$\
$$ | $$ |
$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$$ |
$$ _____|\_$$ _| $$ __$$\ \____$$\ $$ __$$\ $$ __$$ |
\$$$$$$\ $$ | $$ | \__|$$$$$$$ |$$ | $$ |$$ / $$ |
\____$$\ $$ |$$\ $$ | $$ __$$ |$$ | $$ |$$ | $$ |
$$$$$$$ | \$$$$ |$$ | \$$$$$$$ |$$ | $$ |\$$$$$$$ |
\_______/ \____/ \__| \_______|\__| \__| \_______|
NAME:
strand - Random String Generator
USAGE:
strand_darwin_amd64 [global options] command [command options] [arguments...]
VERSION:
v0.0.3
AUTHOR:
Praseetha KR <[email protected]>
COMMANDS:
string, s Generates a random string
alpha, a Generates a random string of letters
alphanumeric, an Generates a random alphanumeric string
numeric, n Generates a random number
urlsafe, u Generates a random URL safe string
hex, h Generates a random hexadecimal string
binary, b Generates a random string of binary digits
password, p Generates a password of random length
from, f Generates a random string from the given character list
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
# --- Random string ---
$ strand string -l 25
xiZ3pOLN}JY!XaB).4`AQ3,[=
# --- Alpha-numeric with uppercase letters ---
$ strand alphanumeric -l 40 --upper
UW7LVTFEMT0BH2EVXCYW0ZB1AOP1QE4QQ2CUULSH
# --- Simple password ---
$ strand password --simple
6?U+msF8
# --- URL-safe password ---
$ strand password --urlsafe
ESQv7nP5H7w-_~_5L7CNF