rng
8BitSafe-cli [common options] util rng [options] [PATH]
| positional arguments | description |
|---|---|
| PATH | file path to write data |
| optional arguments | description | default | allowed |
|---|---|---|---|
| -e,--encoding | Encoding format | raw | raw, base64, hex |
| -l,--length <sizeString> | Number of bytes to generate | 32 | sizeString |
| environment variables |
|---|
| BS_ADDITIONAL_ENTROPY |
Description
Generate bytes from a CSPRNG and write to a file.
Useful for generating symmetric keys or passwords.
Entropy
The bytes output from this command are generated using the same entropy sources as repo secrets, see here for details.
Examples
info
Generate a 32byte secret and save to secret.key
8BitSafe-cli.exe util rng secret.key