Python app for encrypting messages with fernet cryptography.
Project description
Fernet Encryption
Python app for encrypting messages with fernet cryptography. This tool is primarily intended for Linux and Mac, but works on Windows using the Git Bash (https://git-scm.com/downloads).
- Github repo: https://github.com/MysticTechnology/FernetEncryption
- PyPi: https://pypi.org/project/FernetEncryption/
Prerequisites
For Windows, it is recommended to run this app on a Linux emulation layer such as the Git Bash terminal. See the "Instructions for Git Bash" section for details. In addition to Git Bash you will also need to install Python3 and Pip3 as described below.
For Mac and Linux, this app should would out of the box on the Linux or Mac terminal, but you must have Python3 and Pip3 as described below.
This app requires the following:
- Python3 (version 3.8 or greater) - Install Python3 here: [https://www.python.org/downloads/]. Check version with:
python3 --version
. - Pip3 (version 20.2.1 or greater) - Make sure to install python3-pip in order to use pip install. Check version with:
pip3 --version
.
Installation
There are a couple of options to install this app:
- Pip Install - This app is hosted on PyPi and can be installed with the following command:
pip3 install FernetEncryption
- Local Install - Alternatively, you can download or git clone the Github repo and install it locally with the following:
git clone https://github.com/MysticTechnology/FernetEncryption.git
cd FernetEncryption
pip3 install -e .
To uninstall this app:
pip3 uninstall FernetEncryption
- If you used the local install option, you will also want to delete the
.egg-info
file located in thesrc/
directory of the package. This gets created automatically withpip3 install -e .
.
Usage
After installation, you have a couple ways to run this app.
- Run this app from the terminal with this command:
fernetencryption
- Run this app with the python command
python3 -m
:
python3 -m fernetencryption
- You can also import the package resources and run them in your own project:
from fernetencryption import *
fernetenc = FernetEnc()
fernetenc_gui = FernetEncGUI(fernetenc)
fernetenc_gui.run()
Troubleshooting
This section goes over some of the common issues found and how to resolve them.
"Command Not Found" Error When Running the App
On Linux, if you are getting a command not found
error when trying to run the app, you may need to add ~/.local/bin/
to PATH. See this thread for details: [https://stackoverflow.com/a/34947489]. To add ~/.local/bin/
to PATH do the following:
- Add
export PATH=~/.local/bin:$PATH
to~/.bash_profile
.
echo export PATH=~/.local/bin:$PATH > ~/.bash_profile
- Execute command.
source ~/.bash_profile
Instructions for Git Bash
For Windows, it is recommended to run this app on a linux emulation layer like the Git Bash terminal. Here are the instructions for installing and setting up Git Bash:
- Go to https://git-scm.com/downloads and click download.
Version >= 2.34.1
- During the installation setup, make sure to include OpenSSH. Recommenced setting should be fine:
Use bundled OpenSSH - This uses ssh.exe that comes with Git.
- Leave the other settings as default, click through, and install.
- Open
bash.exe
and install Python3 https://www.python.org/downloads/ - Proceed to the "Installation" section to install this app.
IMPORTANT: For Windows, use the bash.exe
terminal rather git-bash.exe
. There is a known issue with git-bash.exe
messing up Python os
commands in import os
. See this thread for details: [https://stackoverflow.com/a/33623136].
- You can find
bash.exe
Git folder in thebin/
directory. For example: Ifgit-bash.exe
is hereC:\Program Files\Git\git-bash.exe
then you should findbash.exe
hereC:\Program Files\Git\bin\bash.exe
.
Support and Contributions
Our software is open source and free for public use. If you found any of these repos useful and would like to support this project financially, feel free to donate to our bitcoin address.
Bitcoin Address 1: 1GZQY6hMwszqxCmbC6uGxkyD5HKPhK1Pmf
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file FernetEncryption-0.1.3.tar.gz
.
File metadata
- Download URL: FernetEncryption-0.1.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6855adfd4e55cfe3b7ce0f5388a50f12ac0969f7b23c58b4f609d0cf8658d4fd |
|
MD5 | 55c2e38b51d9d6aa5984f1ae508ca70a |
|
BLAKE2b-256 | 02e175420766ad38cfc83c0ce6df588e00858a40acc1b44fe5aff0ca6a7358de |
File details
Details for the file FernetEncryption-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: FernetEncryption-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2aa24627ad870604bb061b455d795647eed6c2d423d626aefe17e2c188770b7 |
|
MD5 | deeada161388865cf4c1ed359fe1eeb6 |
|
BLAKE2b-256 | 54d146f1c7a126df0b910896ec28b47a25f7e464349120d8a00c9b27c2b0891f |