[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Aespipe and tar



You can pass your passphrase to gpg similar to what I have below.  This
is an actual snip out of a script that encrypts files for me.

PGPPASS="mypassphrase"
echo $PGPPASS | gpg --batch --passphrase-fd 0 -esa -r $GPGRECIPIANT
$DATAFILE



On Thu, Mar 02, 2006 at 10:28:38PM +0100, Marc Schiffbauer wrote:
> * Andrew Miehs schrieb am 02.03.06 um 16:03 Uhr:
> > Dear List,
> > 
> > Is there anyway that you can make aespipe take a password from the command
> > line? I need to hand store some tapes (tar) offsite, and wanted to encrypt
> > them. I have also tried with gpg, but this also requires a password to be
> > entered when the script is run...
> > 
> > Any good ideas?
> 
> How about that:
> 
> tar czv /etc | aespipe -p3 -eAES256 -C128 3< /etc/aespipe.pwd > etc.tgz 
> 
> this way you can put some chars from /dev/random into the
> password-file to make the backup have a very good passphrase.
> 
> Or without password-file maybe like that:
> 
> tar czv /etc/ | aespipe -p3 -eAES256 -C128 3<<EOP > etc.tgz
> myatleast20charspassword
> EOP
> 
> -Marc
> -- 
> 8AAC 5F46 83B4 DB70 8317  3723 296C 6CCA 35A6 4134
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
# Jesse Molina
# Mail = jesse@opendreams.net
# Page = page-jesse@opendreams.net
# Cell = 1.602.323.7608
# Web  = http://www.opendreams.net/jesse/
 
 



Reply to: