CLIK is a command line interface tool to hide and manage your API keys and Secret/Auth tokens.
This is for project managers for easy management of project-related keys and their distribution.
CLIK provides you with a command line interface that allows you to store your API Keys and Secret/Auth tokens in an encrypted JSON file. You are provided with an option to either store this key locally in a file, or making a note of it to store it anyway you like. The encrypted JSON file can safely be uploaded to VCS repositories, meaning access will only be granted to those who have been given the JSON decryption key by you. You can use the CLIK to also add, remove or modify keys, as and when required.
Software | Version |
---|---|
Python 3 | 3.7.1 |
Visual Studio Code | 1.50.1 |
Operating System | Version(s) |
---|---|
Microsoft Windows | Windows 10 |
Apple macOS | 10.15(Catalina), 11.0(Big Sur) |
You can either clone this repository or install it via pip
pip install python-clik
Once you install CLIK, a short and concise documentation can be found br running the following command on your console:
clik
To create a new file to store keys type the following command in your console:
clik init
Now, you can specify all the keys you want to add in a step by step fashion. CLIK will automatically encrypt the file for you and generate your encryption key. Now you can either store the key locally or write it down for safekeeping. So now, your JSON file containing all your keys is ready for upload on your repository.
To add new keys to an existing JSON file, type the following command in your console:
clik FILENAME add
clik FILENAME subtract
To modify any key in an existing JSON file, type the following command in your console:
clik FILENAME modify
To encrypt the JSON file, type the following command in your console:
clik FILENAME enc
This will ask for any existing Keys to encrypt the JSON file with. If you have an existing Key, continue. Else, you can specify/create a new key for this new encryption.
To decrypt the JSON file, type the following command in your console:
clik FILENAME dec
This will ask for any existing Keys to decrypt the JSON file with. If you have an existing Key, continue normally. Else, provide a path for the Key to be used for decryption.
Note: For any kind of operation on an encrypted JSON file, you need to decrypt it first.
To check the syntax for any of the commands or their function, type the following command in your console:
clik --help
To check the version of CLIK you're running, type the following command in your console:
clik --version
Note: Before uploading the JSON file containing your Keys to any VCS, it is recommended to store your .key file containing your Key to decrypt this encrypted JSON file in .gitignore of any other directory of your computer.