view bin/ep.sh @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
line wrap: on
line source

#!/usr/bin/bash
# Export passport encrypted w/o recipient
#echo "|$WVAL|"
echo ready GPG_TTY=$GPG_TTY
gpg -u ht --batch --pinentry-mode loopback --passphrase "$WVAL" --decrypt ~/info/passwords | sponge | gpg --pinentry-mode loopback --passphrase "$WVAL" --output ~/info/passwords_$(date +%Y-%m-%d).gpg --symmetric 
echo done 1
gpg -u ht --batch --pinentry-mode loopback --passphrase "$WVAL" --decrypt ~/info/password_intro.txt | sponge | gpg --pinentry-mode loopback --passphrase "$WVAL" --output ~/info/password_intro_$(date +%Y-%m-%d).txt.gpg --symmetric 
echo done 2