Commit 713e5a17 authored by totalreset's avatar totalreset
Browse files

Merge branch 'main' into 'main'

# Conflicts:
#   main.py
parents 56bb7ab2 0a2975b5
......@@ -4,29 +4,34 @@
GPE is a GUI for encrypting files using GPG written in python using the library "pysimplegui".
It uses gpg commands to encrypt files with the public keys that are added to your keyring.
## Dependencies:
- python3
- pysimplegui (pip to install it)
- gnupg
- tk
## How to run it:
- Clone the repository 'git clone https://git.puscii.nl/totalreset/gpe'
- Install pysimplegui 'pip install pysimplegui'
- Make it executable 'chmod +x main.py'
- Run it (ex './main.py')
## How it works:
- Click "Browse" to select a file
- Add recipients with the dropdown and the button "Add key"
- Check the list of selected receipients (optional)
- Click "Encrypt" to encrypt the file
## Installer
There is no need of installing GPE, the installer just copies the 'gpe' folder in /opt/ and creates a .desktop icon launcher. If you don't care about the launcher don't run the installer.
In case you want just simply do "bash install.sh install"
To remove/uninstall gpe "bash install.sh remove"
## What to do:
- Clean up code
- Improve text in GUI
- Function to check if GPG key is verified?
- Import/check GPG keys function?
## Dependencies:
- python3
- pysimplegui
- gnupg
- tk
## How to install run it:
- Clone the repository 'git clone URL'
- Install pysimplegui 'pip install pysimplegui'
- Make it executable 'chmod +x main.py'
- Run it './main.py'
## Screenshot
![](/screenshots/GUI.jpeg)
#!/usr/bin/bash
## GPE installer
## Is not necessary to install GPE, you can run it using python like ("./main.py" or "python main.py")
## The installer is just to have an icon launcher in your Desktop Environment
USAGE="Usage: install.sh [install|remove]"
if [ "$1" == "remove" ]
then
sudo rm -r /opt/gpe
sudo rm /usr/share/icons/python_gpe.png
sudo rm /usr/share/applications/gpe.desktop
echo GPE removed.
elif [ "$1" == "install" ]
then
echo "Installer started"
## Create a gpe folder
folder=$(pwd)
echo "$folder"
sudo mkdir /opt/gpe
sudo cp -r $folder /opt
echo "gpe folder created in /opt/"
## Copy icon and .desktop launcher
sudo cp /opt/gpe/launcher/python_gpe.png /usr/share/icons/python_gpe.png
echo "python_gpe.png copied in /usr/share/icons/python_gpe.png"
sudo cp /opt/gpe/launcher/gpe.desktop /usr/share/applications/gpe.desktop
sudo chmod +x /usr/share/applications/gpe.desktop
echo gpe.desktop launcher copied in /usr/share/applications/gpe.desktop
else
echo $USAGE
fi
[Desktop Entry]
Type=Application
Terminal=false
Name=GPE
Exec=python /opt/gpe/main.py
Icon=/usr/share/icons/python_gpe.png
StartupWMClass=GPE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment