https://github.com/edgio/py-ectoken
Python implementation of ectoken
https://github.com/edgio/py-ectoken
Last synced: about 1 year ago
JSON representation
Python implementation of ectoken
- Host: GitHub
- URL: https://github.com/edgio/py-ectoken
- Owner: Edgio
- Created: 2021-03-18T22:12:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T03:14:43.000Z (almost 4 years ago)
- Last Synced: 2023-02-26T22:46:52.966Z (about 3 years ago)
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# py-ectoken
> _Python implementation of Edgio token (`ectoken`)_
## Table of Contents
- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)
## Background
Python implementation of the "Edgio Token" (`ectoken`) -see main repo [ectoken](https://github.com/edgioinc/ectoken) for more details.
## Install
### With `pip`
```sh
pip install -r requirements.txt
```
## Usage
### Help
```sh
>./ectoken.py -h
usage: ectoken.py
Generate Random Security Config Post from Template.
optional arguments:
-h, --help show this help message and exit
-k KEY, --key KEY Token Key.
-t TOKEN, --token TOKEN
Token to encrypt or decrypt.
-d, --decrypt Decrypt.
-v, --verbose Verbosity.
```
### Encrypt
Encrypt clear text token `` with key: ``:
```sh
~>./ectoken.py -k MY_SECRET_KEY -t MY_COOL_TOKEN
26oBaqCbdLyJD5RjsHBYGsIDQGOehPo2rZfGwGey-ubhciakzPwRIdQ
```
### Decrypt
Decrypt ciphertext token `` with key: ``:
```sh
~>./ectoken.py -k MY_SECRET_KEY -t '26oBaqCbdLyJD5RjsHBYGsIDQGOehPo2rZfGwGey-ubhciakzPwRIdQ' -d
MY_COOL_TOKEN
```
## Contribute
- We welcome issues, questions and pull requests.
## License
This project is licensed under the terms of the Apache 2.0 open source license. Please refer to the `LICENSE-2.0.txt` file for the full terms.