Imported Upstream version 2.5.1p3
[debian/amanda] / man / amcrypt.8
1 .\"     Title: amcrypt
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
4 .\"      Date: 02/07/2007
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMCRYPT" "8" "02/07/2007" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amcrypt \- reference crypt program for Amanda symmetric data encryption
15 .SH "SYNOPSIS"
16 .HP 8
17 \fBamcrypt\fR
18 .SH "DESCRIPTION"
19 .PP
20
21 \fBamcrypt\fR
22 requires
23 \fBaespipe\fR,
24 \fBuuencode\fR
25 and
26 \fBgpg\fR
27 to work. Aespipe is available from
28 \fI\%http://loop\-aes.sourceforge.net\fR
29 .PP
30
31 \fBamcrypt\fR
32 will search for the aespipe program in the following directories: /usr/bin:/usr/local/bin:/sbin:/usr/sbin.
33 .PP
34
35 \fBamcrypt\fR
36 calls
37 \fBamaespipe\fR
38 and pass the
39 \fBpassphrase\fR
40 through file descriptor 3. The passphrase should be stored in ~amanda/.am_passphrase.
41 .SH "HOW TO CREATE ENCRYPTION KEYS FOR AMCRYPT"
42 .PP
43 1. Create 65 random encryption keys and encrypt those keys using gpg. Reading from /dev/random may take indefinitely long if kernel's random entropy pool is empty. If that happens, do some other work on some other console (use keyboard, mouse and disks).
44 .PP
45 head \-c 2925 /dev/random | uuencode \-m \- | head \-n 66 | tail \-n 65 \e | gpg \-\-symmetric \-a > ~amanda/.gnupg/am_key.gpg
46 .PP
47 This will ask for a passphrase. Remember this passphrase as you will need it in the next step.
48 .PP
49 2. Store the passphrase inside the home\-directory of the AMANDA\-user and protect it with proper permissions:
50 .sp
51 .RS 4
52 .nf
53 echo my_secret_passphrase > ~amanda/.am_passphrase
54 chown amanda:disk ~amanda/.am_passphrase
55 chmod 700 ~amanda/.am_passphrase
56 .fi
57 .RE
58 .SH "KEY AND PASSPHRASE"
59 .PP
60
61 \fBamcrypt\fR
62 uses the same key to encrypt and decrypt data.
63 .PP
64 It is very important to store and protect the key and the passphrase properly. Encrypted backup data can
65 \fBonly\fR
66 be recovered with the correct key and passphrase.
67 .SH "SEE ALSO"
68 .PP
69 \fBamanda\fR(8),
70 \fBamanda.conf\fR(5),
71 \fBaespipe\fR(1),
72 \fBamaespipe\fR(8),
73 \fBgpg\fR(1)