https://github.com/nanogiants/tenc
https://github.com/nanogiants/tenc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nanogiants/tenc
- Owner: nanogiants
- License: mit
- Created: 2021-03-12T09:22:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T10:40:19.000Z (about 4 years ago)
- Last Synced: 2025-02-19T12:56:13.587Z (4 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 htmlpython -m compileall .
```