An open API service indexing awesome lists of open source software.

https://github.com/nanogiants/tenc


https://github.com/nanogiants/tenc

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# (t)iny (enc)ryption

Simple en- and decryption script

## How to use

```bash
pip install -U PyCryptodome coverage
pip install tenc
```

```bash
usage: tenc [-h] -f PATH -p PASSWORD [-d]

Encrypt and decrypt files

optional arguments:
-h, --help show this help message and exit
-f PATH Path to file
-p PASSWORD The password
-d Should decrypt otherwise encrypt
```

### Examples:

```bash
tenc -p 5a04ec902686fb05a6b7a338b6e07760 -f ./test.json
tenc -p 5a04ec902686fb05a6b7a338b6e07760 -f ./test.json.enc -d
```

### Tests

```bash
python3 -m unittest discover
coverage run -m unittest discover && coverage report && coverage html
```

### Publish

```bash
python3 setup.py sdist bdist_wheel
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

python3 setup.py develop
python setup.py develop --uninstall
```

### Docs

```bash
# docs
sphinx-apidoc -o source/ ../tenc
cd docs
make clean && make html

python -m compileall .
```