A command line application that encrypts passwords for use with Travis CI.
Project description
Travis Encrypt is a Python command line application that provides an easy way to encrypt passwords and environment variables for use with Travis CI. This application intends to be a replacement for the Travis Ruby client as that client is not maintained and does not provide detail regarding password encryption.
All passwords and environment variables are encrypted with the PKCS1v15 padding scheme until Travis-CI updates its protocols.
Installation
To install Travis Encrypt simply run the following command in a terminal window:
$ pip install travis-encrypt
If you would rather install from source, run the following commands in a terminal window:
$ git clone https://github.com/mandeep/Travis-Encrypt.git $ cd Travis-Encrypt $ python setup.py install
Travis Encrypt will attempt to install the cryptography package, however the package requires headers for Python. If installation fails, please see the cryptography installation guide: https://cryptography.io/en/latest/installation/
Usage
With Travis Encrypt installed, the command line application can be invoked with the following command and mandatory arguments:
usage: travis-encrypt [options] github_username repository path positional arguments: github_username GitHub username that houses the repository repository Name of the repository whose password requires encryption path Path to the repository's .travis.yml file optional arguments: --help Show the help message and quit --deploy Encrypt a password for continuous deployment usage --env Encrypt an environment variable
When the command is entered, the application will issue a prompt where the user can enter either a password or environment variable. In both cases, the prompt will print ‘Password:’. Once the prompt is answered, Travis Encrypt will write the encrypted password or environment variable to the given .travis.yml file.
Example of password encryption:
$ travis-encrypt mandeep Travis-Encrypt /home/user/.travis.yml Password:
Example of deployment password encryption:
$ travis-encrypt --deploy mandeep Travis-Encrypt /home/user/.travis.yml Password:
Example of environment variable encryption:
$ travis-encrypt --env mandeep Travis-Encrypt /home/user/.travis.yml Password:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for travis_encrypt-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30d017cd88677a360b208dcdafc8c7e8dea064ec611a67b39f85750344f3604 |
|
MD5 | d2f4a5f8a3fd35f09b7f3707617c7af9 |
|
BLAKE2b-256 | 9f560b75a47a2718f990eb5ff6701b3850e7dca02136a3a04383e5e5e71a255d |