-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmenu
More file actions
90 lines (79 loc) · 2.25 KB
/
menu
File metadata and controls
90 lines (79 loc) · 2.25 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#/usr/bin/bash
# Secure Messaging Menu Script
# Written by John Shearing with much help from the open source community.
# This is a simple GUI for gpg secure messaging between PrivateKeyVaults or other Linux airgapped devices.
while true;
do
clear;
# Ask user to choose a task.
choice=$(zenity --list \
--title="PrivateKeyVault Secure Messaging Services" \
--text="Select a task from the menu" \
--width 1000 \
--height 1000 \
--hide-column=2 \
--column "Num" --column "Task" --column "Description" \
"1" "mew" "Launch MyEtherWallet" \
"2" "strtterm" "Work at the command prompt" \
"3" "strtfm" "Manage files" \
"4" "strtlfpd" "Read or write a message" \
"5" "ncrypt" "Encrypt a text file" \
"6" "qrflash" "Export Text File: Send QR-Code parade to screen" \
"7" "recvid" "Import Text File: Read QR_Coded video into camera and extract the text" \
"8" "dcrypt" "Decrypt a text file" \
"9" "qrvid2txt" "Extract text from an MP4 video file containing QR-Codes" \
"10" "fingerprint" "Show fingerprints for public keys" \
"11" "listkeys" "List public keys" \
"12" "listsecretkeys" "List private keys" \
"13" "txt2rings" "Import a public or private key from a text file" \
"14" "pub2txt" "Export a public key to a text file" \
"15" "priv2txt" "Export a private key to a text file" \
"16" "genkey" "Generate a Public / Private key pair" \
"17" "delpub" "Delete a public key" \
"18" "delprv" "Delete a private key" \
"19" "Exit" "Exit the menu" \
2>/dev/null);
# if user cancels, exit
if [ $? == 1 ] || [ $choice == 0]; then exit; fi
clear;
# Execute the chosen operation.
if [[ $choice = 1 ]]; then
mew
elif [[ $choice = 2 ]]; then
strtterm
elif [[ $choice = 3 ]]; then
strtfm
elif [[ $choice = 4 ]]; then
strtlfpd
elif [[ $choice = 5 ]]; then
ncrypt
elif [[ $choice = 6 ]]; then
qrflash
elif [[ $choice = 7 ]]; then
recvid
elif [[ $choice = 8 ]]; then
dcrypt
elif [[ $choice = 9 ]]; then
qrvid2txt
elif [[ $choice = 10 ]]; then
fingerprint
elif [[ $choice = 11 ]]; then
listkeys
elif [[ $choice = 12 ]]; then
listsecretkeys
elif [[ $choice = 13 ]]; then
txt2rings
elif [[ $choice = 14 ]]; then
pub2txt
elif [[ $choice = 15 ]]; then
priv2txt
elif [[ $choice = 16 ]]; then
genkey
elif [[ $choice = 17 ]]; then
delpub
elif [[ $choice = 18 ]]; then
delprv
elif [[ $choice = 19 ]]; then
exit
fi
done