Skip to content

Commit

Permalink
GnuPG 2.2.7 feature 'no-symkey-cache'
Browse files Browse the repository at this point in the history
  • Loading branch information
drduh committed Dec 28, 2018
1 parent d585445 commit 0a79adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ get_pass () {
decrypt () {
# Decrypt with a password.

echo "${1}" | ${gpg} --armor --batch \
echo "${1}" | ${gpg} --armor --batch --no-symkey-cache \
--decrypt --passphrase-fd 0 "${2}" 2>/dev/null
}

Expand All @@ -54,7 +54,7 @@ encrypt () {
# Encrypt with a password.

${gpg} --armor --batch \
--symmetric --yes --passphrase-fd 3 \
--symmetric --yes --passphrase-fd 3 --no-symkey-cache \
--output "${2}" "${3}" 3< <(echo "${1}")
}

Expand Down

0 comments on commit 0a79adf

Please sign in to comment.