randcrypt
is command line tool that can generate a cryptic strong random string and copy it to clipboard
. Can be useful for creating an identifier, slug, salt, PIN code, fixture, etc. It is a wrapper around clipboardy
and crypto-random-string
packages.
Buy me a coffe at:
To use it in terminal, we install it globally:
npm install -g randcrypt # or using yarn: yarn global add randcrypt
To use randcrypt we must supply with minimally one argument ie length
, optionallly type
argument:
rc [length] [type]
for example: rc 32 base64
.
Here are the possible types that we can use:
- hex,
- base64,
- url-safe,
- numeric,
- distinguishable,
- ascii-printable,
- alphanumeric.
For simple help about randcrypt, run randcrypt without any arguments:
rc