Skip to main content

rng

8BitSafe-cli [common options] util rng [options] [PATH]
positional argumentsdescription
PATHfile path to write data
optional argumentsdescriptiondefaultallowed
-e,--encodingEncoding formatrawraw, base64, hex
-l,--length <sizeString>Number of bytes to generate32sizeString
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