gpgwrap(1) General Commands Manual gpgwrap(1) (NAME) gpgwrap - gpg (SYNOPSIS) gpgwrap -V gpgwrap -P [-v] [-i] [-a] [-p ] gpgwrap -F [-v] [-i] [-a] [-c] [-p ] [-o ] [--] [ ... ] gpgwrap [-v] [-i] [-a] [-p ] [-o ] [--] gpg [gpg options] (DESCRIPTION) GNU Privacy Guard (gpg) --passphrase-fd . gpg (file descriptor) . gpg execvp(3) . gpgwrap . gpgwrap : * * (stdin) gpgwrap * GPGWRAP_PASSPHRASE * (prompt) gpgwrap gpg . (batch-oriented) . gpg-agent . GPGWRAP_PASSPHRASE . (OPTIONS) -V, --version . -P, --print (mangled) stdout. -F, --file gpg . - stdin . . : * (octal) . * GPGWRAP_PASSPHRASE . * "exec gpgwrap -- " "sh -c" . -h, --help . -v, --verbose (). -i, --interactive ( -p ). -a, --ask-twice . -c, --check-exit-code gpg gpgwrap . . gpgwrap . (BUGS) . -p , --passphrase-file . - stdin . . GPGWRAP_PASSPHRASE tty . -o , --option-name "--passphrase-fd" . gpgwrap gpg . (LIMITATIONS) gpgwrap : * : ( ). * gpgwrap \000 gpg . \012 ( C \n ) gpg . * GPGWRAP_PASSPHRASE gpgwrap (escape) ( -F ). : \134. (EXAMPLES) 1. gpgwrap -p /path/to/a/secret/file \ gpg -c -z 0 --batch --no-tty \ --cipher-algo blowfish < infile > outfile /path/to/a/secret/file gpg infile outfile. 2. gpgwrap -i -a \ gpg -c -z 0 --batch --no-tty \ --cipher-algo blowfish < infile > outfile gpgwrap . 3. gpgwrap -F -i - < "$HOME/outfile1" gpg --decrypt --batch --no-tty < "$HOME/infile2" > "$HOME/outfile2" gpg --decrypt --batch --no-tty < "$HOME/infile3" > "$HOME/outfile3" gpg --decrypt --batch --no-tty < "$HOME/infile4" > "$HOME/outfile4" EOL gpgwrap gpg . 4. GPGWRAP_PASSPHRASE="mysecretpassphrase" export GPGWRAP_PASSPHRASE gpgwrap -F -c -v /tmp/cmdfile1 - /tmp/cmdfile2 < "$HOME/outfile1" gpg --decrypt --batch --no-tty < "$HOME/infile2" > "$HOME/outfile2" gpg --decrypt --batch --no-tty < "$HOME/infile3" > "$HOME/outfile3" gpg --decrypt --batch --no-tty < "$HOME/infile4" > "$HOME/outfile4" EOL gpgwrap gpg . gpg . gpgwrap (verbose) . 5. GPGWRAP_PASSPHRASE="$(gpgwrap -P -i -a)" export GPGWRAP_PASSPHRASE find . -maxdepth 1 -type f | while read FILE; do FILE2="$FILE.bz2.gpg" bzip2 -c "$FILE" | gpgwrap gpg -c -z 0 --batch --no-tty \ --cipher-algo blowfish > "$FILE2" && touch -r "$FILE" "$FILE2" && rm -f "$FILE" done . 6. find . -maxdepth 1 -type f -name '*.bz2.gpg' | awk '{ printf("gpg --decrypt --batch --no-tty --quiet "); printf("--no-secmem-warning < %s\n", $0); }' | gpgwrap -F -i -c - | bzip2 -d -c - | grep -i 'data' *.bz2.gpg data. less gpgwrap less TTY . ( ). 7. GPGWRAP_PASSPHRASE="$(gpgwrap -P -i -a)" export GPGWRAP_PASSPHRASE gpgwrap -P | ssh -C -x -P -l user host " GPGWRAP_PASSPHRASE=\"\$(cat)\" ... " GPGWRAP_PASSPHRASE. 8. echo -n "Passphrase: " stty -echo read GPGWRAP_PASSPHRASE echo stty echo export GPGWRAP_PASSPHRASE . gpgwrap -P . . 9. echo "mysecretpassphrase" | gpg --batch --no-tty --passphrase-fd 0 \ --output outfile --decrypt infile gpg gpgwrap. stdin gpg stdin . 10. gpg --batch --no-tty \ --passphrase-fd 3 3< /path/to/a/secret/file \ < infile > outfile -p gpgwrap . bash . 11. gpg --batch --no-tty --passphrase-fd 3 \ 3< <(echo "mysecretpassphrase") \ < infile > outfile . bash . (BUGS) 0.02 gpgwrap gpg gpgwrap . 0.03 -F -c . (SEE ALSO) gpg, gpg-agent (AUTHORS) Karsten Scheibler gpgwrap 0.04 gpgwrap(1)