File: pgp_read

package info (click to toggle)
afio 2.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 768 kB
  • sloc: ansic: 4,972; sh: 139; makefile: 75; awk: 19
file content (19 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# This example shows how to configure afio to read pgp encrypted archives.
#
# Setting the PGPPASS environment variable is unsafe.
#
# If you are using bash, you can use the input redirection by opening a second
# input stream linked to a file containing your pass phrase. Be careful about
# that file's permissions!
#
# working with any shell, but unsafe:
#
#export PGPPASS="your pass phrase"
# afio -iv -Z -P "pgp" -Q "-fd" archive_file
#
# better, only working with bash(?):
#
export PGPPASSFD=3
afio -iv -Z -P "pgp" -Q "-fd" -3 3 archive_file 3<passphrase_file