Skip to content
This repository was archived by the owner on Oct 25, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 43 additions & 10 deletions docs/gui-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,52 @@

- **Verify a signature**:
When the button is clicked, the app does these:
+ Open the dialog box for selecting a file.
+ Open the dialog box for selecting a file (of type .signature).

![](img/sign-file-dialog.png)

+ Verify the signature.


+ Display any error or information messages (whether the
signature is correct or not, if correct by whom was signed, any
metadata, etc.) For example:
```
File: ....
Good signature from: Dashamir Hoxha <dashohoxha@gmail.com> (verified)
Fingerprint: 040E FEF9 081A 6B44 A0F7 CE6C FA82 4ADB A836 945C
Time of signature: ....
Title:
Description:
```
metadata, etc.)

![](img/verify.png)

+ If the person who signed the docs is not on the contact list,
it should ask to search for him online. If found, should ask
to save him on the contact list.

![](img/verify-no-contact.png)

- **Seal a file(s)**::
+ Open a dialog box for selecting a file(s)
+ Open dialog box for selecting contact(s)
- We can probably use the code from contact management part.
+ If the encryption is successful display a info.
+ If unsuccessful display the errors

- **Open a Sealed file(s)**::
+ Open a dialog box for selecting a file (of type .sealed)

+ Try decrypting the file

+ If successful display info (such as signature).
- we can also give an option to launch the file with default program

+ If unsuccessful display an error

- **Change settings**::

![](img/settings.png)

### 04. Manage Keys

![](img/key-management.png)

### 05. Manage Contacts

![](img/contact-modify.png)

![](img/contact-add.png)
Binary file added docs/img/contact-add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/contact-modify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/key-management.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/sign-file-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/verify-no-contact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/verify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions src/ggpg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# include all the functions defined by egpg
source $(dirname $0)/egpg.sh

main() {
yad --text "Would you like to start EasyGnuPG?" \
--button=gtk-no:1 --button=gtk-yes:0

local gnupg_version=$(gpg_version)
[[ ${gnupg_version%.*} == "2.2" ]] || fail "These scripts are supposed to work with GnuPG 2.2"

# set config variables
export EGPG_DIR="${EGPG_DIR:-$HOME/.egpg}"
[[ -d "$EGPG_DIR" ]] || fail "No directory '$EGPG_DIR'\nTry first: $(basename $0) init"
config

}

# call the main function, unless the script
# is sourced from another one
unset BASH_SOURCE 2>/dev/null
[[ $0 != $BASH_SOURCE ]] || main "$@"