cryptbotics
v1.0.0
Published
Tool for encrypting .env file
Readme
CryptoBotics
With cryptobotics you can encrypt and decrypt your .env file. Just pass the key and see the magic goin'.
Getting Started
Firstly install the package globally with npm:
npm install -g cbot
Then you can run the following command to see the help:
cbot -h
For starters there's an .env-example file. Check out the contents - for example you should see
RUNBOTICS_ENTRYPOINT_URL="http://localhost:XXXX"
If you run node .\index.js --file=.env-example aesEncryptionKey -e you should it change to:
RUNBOTICS_ENTRYPOINT_URL="ee0011856e83b3aee055fd3519117e0b93f9e523757433c2e3a02a4abc98a059"You can decrypt it back with node .\index.js --file=.env-example aesEncryptionKey -d
Break it down
in command node .\index.js --file=.env-example aesEncryptionKey -e
aesEncryptionKeyis the 16-chars key you want to use for encryption/decryption. Replace it with random string, e.g.swb74mgiU28a2RTh-eis the flag for encryption. If you want to decrypt the file, replace it with-d--fileis the file name you want to encrypt/decrypt. By default it's .env-his the flag for help. It will show you the help message.
