Skip to content

Commit 4e37f8e

Browse files
committed
Clearer encryption instructions
1 parent ab586a5 commit 4e37f8e

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

jwinbox

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Automatically check jw.org inbox for new messages
33
# In popular Linux distros (e.g. Ubuntu) all of the programs here come pre-installed. (Except maybe your favorite browser.)
4+
# These may include: wget, notify-send, gpg, mplayer|aplay, firefox|google-chrome|?
45
# You may check stderr if one of those programs aren't installed
56

67
# Check for multiple sessions of script
@@ -10,21 +11,29 @@
1011
cd "`dirname $0`"
1112

1213
# jw.org account details
14+
# (Option 1 - plaintext passwords)
1315
username=''
1416
password=''
1517

18+
# Authentication (modification optional, see below)
19+
auth="txtUserName=$username&txtPassword=$password"
20+
21+
# (Option 2 - encrypted username and password)
22+
# If you prefer a password in an encrypted file, encrypt username and password in this format:
23+
# txtUserName=$username&txtPassword=$password
24+
# i.e. `echo "txtUserName=$username&txtPassword=$password" | gpg -c - > .encrypted-file`
25+
# You may wish to store this file separated from the script directory and do a `chmod 600`
26+
# Store auth as below:
27+
28+
# auth=`gpg --batch -q --no-use-agent --passphrase-file /path/to/passphrase -d ./encrypted-file`
29+
1630
# Unique account number
1731
# This is the unique alphanumeric code for your account. It is REQUIRED that you fill this in correctly.
1832
# First login to your account in a browser and see the URL in the format: https://www.jw.org/apps/<LANG>_<txtAcct>_<PAGE>
1933
# For example, you may see in the address bar immediately after you logged in: https://www.jw.org/apps/E_1234567890_ADMIN
2034
# Then your txtAcct would be: 1234567890
2135
txtAcct=''
2236

23-
# Authentication (modification optional)
24-
auth="txtUserName=$username&txtPassword=$password"
25-
# If you prefer a password in an encrypted file separate from the script, for example: (the encrypted-file format should be the same above)
26-
# auth=`gpg --batch -q --no-use-agent --passphrase-file /path/to/passphrase -d ./encrypted-file`
27-
2837
# Time to check jw.org inbox, could be: second, minute, hour, day: s m h d
2938
checkevery=3h
3039

0 commit comments

Comments
 (0)