This one time, at band camp, Jamie Wilkinson wrote:
>tar xf - dir | gpg -se > foo.tar.gpg
>
>dd if=foo.tar.gpg count=32000 bs=1 > bar.tar.gpg
>dd if=/dev/urandom count=1 bs=1 >> bar.tar.gpg
>dd if=foo.tar.gpg skip=32001 bs=1 >> bar.tar.gpg
>
>gpg --decrypt --ignore-mdc-error bar.tar.gpg | tar tf -

>James has informed me that openssl can do it, so my next question is how
>does one encrypt and decrypt with openssl? :-)  The manpage lacks useful
>examples...

All sorted!

tar cf - foo/ | openssl enc -e -aes-256-cfb > x.tar.ssl

openssl enc -d -aes-256-cfb -in x.tar.ssl | tar tf -

works.

The dd magic above to modify the input file is coped by the -cfb
algorithm.  That's cool.

-- 
[EMAIL PROTECTED]                           http://spacepants.org/jaq.gpg
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to