Initialize Rot

How to initialize Rot

In this guide, we’ll go over initializing a new Rot configuration.

Initialization Process

Out of the box, Rot doesn’t know about any keys or values. Rot can perform ad-hoc encryption and decryption using rot encrypt and rot decrypt, but long term storage and sharing of secrets must be done using a shared configuration.

Rot is initialized using rot init. This command will create a new configuration within the current directory (or wherever configPath points to). A Keyring name and initial public key can be provided, as well as enabling Encrypted Vlaue Names and Metadataotherwise Rot will generate these. This command performs these actions:

If rot init is ran again, a warning will appear to prevent accidental overwriting.