-
Notifications
You must be signed in to change notification settings - Fork 4
/
LUKSUS.gnupgp
executable file
·28 lines (24 loc) · 1.31 KB
/
LUKSUS.gnupgp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# LUKSUS.gnupgp - Encrypt file using dialog box
# -------------------------------------------------
# purpose - This is the GNUPGP functionality of LUKSUS
# This file should to into LUKSUS.variables at a later stage
# $1 - filename (a local variable)
"$dialogapp" --cancel-label "EXIT LUKSUS" --title "$programname in GNUPGP-mode" --msgbox "\n
You have chosen to encrypt a single file with GNUPGP.\n
When you proceed to the next screen you will be shown a filemanager.
Use the arrow keys, the tab key and the spacebar to move around the filesystem.\n\n
Go back to the root by hitting the backspace button on your keyboard.\n
The spacebar selects the chosen files. You can also write the complete\n
path of the file you wish to use. Press enter when you have chosen the correct file.\n
The program will then ask you twice for a password to protect the file.\n
When GNUPGP is done encrypting, it will have created a new file with a .gpg extension.\n
Press CTRL+C now to quit or select cancel on the next screen.\n\n
" 0 0
# select filename using dialog
# store it to $FILE
FILE=$(dialog --title "Choose file to encrypt with GPG" --stdout --title "Use tab, arrow keys, space, backspace to select file and enter to continue" --fselect / $dialogsize)
# encrypt file
[ ! -z $FILE ] && GNUPGP "$FILE"
cat welcomelogo.$$
exit 0