Skip to content

afif-dev/py-cryptography-cli

Repository files navigation

Py Cryptography CLI App

Encrypt & decrypt string using cryptography.io

CLI app included in distribution folder (dist/py-cryptography-cli.exe)

Basic Usage

  1. Help
py py-cryptography-cli -h
  1. Encrypt text/string
py py-cryptography-cli "Hello Python, this is Py Cryptography CLI App"
  1. Decrypt token
py py-cryptography-cli "<TOKEN>" -k "<KEY>"

Setup for Local Development

  1. Creating a virtual environment
py -m venv venv
  1. Activate the environment
.\venv\Scripts\activate
  1. Install all of the packages using requirements.txt
pip install -r requirements.txt
  1. Run cli application
py py-cryptography-cli.py -h
  1. Build cli output (more refer to : https://pyinstaller.org/en/stable/usage.html)
pyinstaller py-cryptography-cli.spec
  1. Export a list of all installed packages (Optional)
pip freeze > requirements.txt
  1. Leaving the environment
deactivate

Reference Links