File: gnupg_write

package info (click to toggle)
afio 2.4.7-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 372 kB
  • ctags: 403
  • sloc: ansic: 4,238; sh: 226; makefile: 64
file content (45 lines) | stat: -rwxr-xr-x 1,190 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# This example shows how to configure afio to write GnuPG encrypted archives.

# What is GnuPG?

# 	OVERVIEW  

# GnuPG is a complete and free replacement for PGP. Because it does not use
# IDEA or RSA it can be used without any restrictions. GnuPG is a RFC2440
# (OpenPGP) compliant application.

# 	(Some)  Features 

# 	*     Full replacement of PGP. 
# 	*     Does not use any patented algorithms. (!!!!!!!!!!!!!!!!)
# 	*     GPLed, written from scratch. 
# 	*     Can be used as a filter program. 
# 	*     Full OpenPGP implementation. 
# 	*     Better functionality than PGP and some security enhancements. 
# 	*     Decrypts and verifies PGP 5.x messages. 


# Where can I get GnuPG ?

# 	http://www.gnupg.org/  




# How can I use GnuPG to encrypt my archives ?
# 

# 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!
#
# only working with bash(?):
#
find *|afio -ovz -Z -U -P gpg -Q --symmetric \
	     -Q --passphrase-fd=3 -Q --no-verbose \
	     -Q --batch -Q --no-options -3 3 \
             my_archive_file \
		3<my_passphrasefile