Encrypt & decrypt file or folder
CLI app included in distribution folder (dist/py-encrypt-cli.exe)
- Help
py-encrypt-cli -h
- Generate file "filekey.key" with key (required)
py-encrypt-cli -gk true
- Encrypt file from ./csv-files-sample folder
py-encrypt-cli "../csv-files-sample/timezone.csv" -pt file -et encrypt
- App generate new encrypted file: ../csv-files-sample/timezone_5cocx5L9XKJ47g.csv
- Decrypt file
py-encrypt-cli "../csv-files-sample/timezone_5cocx5L9XKJ47g.csv" -pt file -et decrypt
- Encrypt folder ./csv-files-sample
py-encrypt-cli "../csv-files-sample" -pt folder -et encrypt
- App generate new encrypted zip file: ../csv-files-sample_MVWiuJ7UvCEYTg.zip
- Decrypt folder (zip file)
py-encrypt-cli "../csv-files-sample_MVWiuJ7UvCEYTg.zip" -pt folder -et decrypt
- Creating a virtual environment
py -m venv venv
- Activate the environment
.\venv\Scripts\activate
- Install all of the packages using requirements.txt
pip install -r requirements.txt
- Run cli application
py py-encrypt-cli.py -h
- Generate file "filekey.key" with key (required)
py py-encrypt-cli.py -gk true
- Build cli output (more refer to : https://pyinstaller.org/en/stable/usage.html)
pyinstaller py-encrypt-cli.spec
- Export a list of all installed packages (Optional)
pip freeze > requirements.txt
- Leaving the environment
deactivate
- https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/
- https://docs.python.org/3/library/index.html
- https://docs.python.org/3/library/argparse.html
- https://cryptography.io/
- https://pyinstaller.org/en/stable/usage.html
- https://pyinstaller.org/en/stable/man/pyi-makespec.html