diff --git a/docs/gui-description.md b/docs/gui-description.md index 62fc73e..cc61d45 100644 --- a/docs/gui-description.md +++ b/docs/gui-description.md @@ -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 (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) diff --git a/docs/img/contact-add.png b/docs/img/contact-add.png new file mode 100644 index 0000000..ca777e9 Binary files /dev/null and b/docs/img/contact-add.png differ diff --git a/docs/img/contact-modify.png b/docs/img/contact-modify.png new file mode 100644 index 0000000..b2f5b62 Binary files /dev/null and b/docs/img/contact-modify.png differ diff --git a/docs/img/key-management.png b/docs/img/key-management.png new file mode 100644 index 0000000..b767013 Binary files /dev/null and b/docs/img/key-management.png differ diff --git a/docs/img/settings.png b/docs/img/settings.png new file mode 100644 index 0000000..154997c Binary files /dev/null and b/docs/img/settings.png differ diff --git a/docs/img/sign-file-dialog.png b/docs/img/sign-file-dialog.png new file mode 100644 index 0000000..708d76b Binary files /dev/null and b/docs/img/sign-file-dialog.png differ diff --git a/docs/img/verify-no-contact.png b/docs/img/verify-no-contact.png new file mode 100644 index 0000000..a3f9135 Binary files /dev/null and b/docs/img/verify-no-contact.png differ diff --git a/docs/img/verify.png b/docs/img/verify.png new file mode 100644 index 0000000..c6bcc9a Binary files /dev/null and b/docs/img/verify.png differ diff --git a/src/ggpg.sh b/src/ggpg.sh new file mode 100755 index 0000000..bb6010f --- /dev/null +++ b/src/ggpg.sh @@ -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 "$@"