Skip to main content

A CLI tool to keep your Secret/OAuth Keys Safe

Project description

CLIK

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.

How CLIK Works

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.

Built With

Software Version
Python 3 3.7.1
Visual Studio Code 1.50.1

Tested With

Operating System Version(s)
Microsoft Windows Windows 10
Apple macOS 10.15(Catalina), Beta 11.0(Big Sur)

Installation

You can either clone this repository or install it via pip

pip install python-clik

Usage

Once you install CLIK, a short and concise documentation can be found br running the following command on your console:

clik

Initialising the JSON File

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.

Adding/Subtracting Keys

To add new keys to an existing JSON file, type the following command in your console:

For Adding Keys

clik FILENAME add

For Subtracting Keys

clik FILENAME subtract

For Modifying Keys

To modify any key in an existing JSON file, type the following command in your console:

clik FILENAME modify

For Encrypting the Keys File

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.

For Decrypting the Keys File

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.

Help

To check the syntax for any of the commands or their function, type the following command in your console:

clik --help

Version

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.

Dependancies

Contributors

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-clik-1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

python_clik-1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file python-clik-1.0.tar.gz.

File metadata

  • Download URL: python-clik-1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for python-clik-1.0.tar.gz
Algorithm Hash digest
SHA256 27f41b695bedd46b6a447b34119fe3c34ed1719ce5d57351e50c2b46d109597f
MD5 b4b6ed3bf13f3c2c3c048231879c0923
BLAKE2b-256 5afaa5f76458f61a71e40d2e3749c6a4a82fa6dd4d195d606890d694d721b7bd

See more details on using hashes here.

File details

Details for the file python_clik-1.0-py3-none-any.whl.

File metadata

  • Download URL: python_clik-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for python_clik-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d37e4103188f068c3da2ecdb4b99b0668d2ad654cff2a939ef820cacf760540
MD5 f446989121f370afad31b9babfe3a390
BLAKE2b-256 ea4234031d1b6cdeafc4217a6012478f73e5be408adb224b7598b892c6a50221

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page