Re: Symmetric encrypt many files (batch mode)

2015-01-04 Thread Ryan Sawhill
Assuming you want to encrypt every single file in a directory tree, your
best bet would be to use the find command. Something like this:

find /SomeDirectory -type f -exec gpg2 --batch --cipher-algo AES256
--force-mdc --symmetric --passphrase-file /FILE -o {}.gpg {} \;

The above will save each file with the same name + an extension of ".gpg".
The cipher-algo & force-mdc options aren't required of course. Just a
personal recommendation.
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Symmetric encrypt many files (batch mode)

2015-01-03 Thread Heinz Diehl
On 02.01.2015, Egon wrote: 

> I want to symmetrically encrypt many hundreds of files under Linux, the
> files stored in many subdirectories.

Mabe you should consider using a LUKS/dmcrypt container/partition. It would make
things a lot easier and more fail-proof for you.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Symmetric encrypt many files (batch mode)

2015-01-02 Thread Ben Staude

Am 02.01.2015 um 20:34 schrieb Egon:

Hi All!

I want to symmetrically encrypt many hundreds of files under Linux, the
files stored in many subdirectories. I am looking for a shell script
which can do it for me. What is the simplest way to do it?


You might want to look at gpgdir: https://cipherdyne.org/gpgdir/

Ben

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Symmetric encrypt many files (batch mode)

2015-01-02 Thread Dave Pawson
If you can get a list (comma, space separated) of the files, bash
would do it nicely?
  whatever you do, you'll need that?
then obtain the basename, $bn and use a for each on the list?

HTH

On 2 January 2015 at 19:34, Egon  wrote:
> Hi All!
>
> I want to symmetrically encrypt many hundreds of files under Linux, the
> files stored in many subdirectories. I am looking for a shell script which
> can do it for me. What is the simplest way to do it?
>
> Best regards, Egon
>
>
> ___
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Symmetric encrypt many files (batch mode)

2015-01-02 Thread Egon

Hi All!

I want to symmetrically encrypt many hundreds of files under Linux, the 
files stored in many subdirectories. I am looking for a shell script 
which can do it for me. What is the simplest way to do it?


Best regards, Egon


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users