Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

Scripts

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


ekolb at randbreceivables

Jun 26, 2001, 11:02 PM

Post #1 of 4 (156 views)
Permalink
Scripts

Does anyone happen to have a shell script that will automatically encrypt
all files in a directory?


dkrauter at getesuite

Jun 26, 2001, 11:46 PM

Post #2 of 4 (153 views)
Permalink
RE: Scripts [In reply to]

ls -l $theDir |\
awk '/^-/ { print $9 }' |\
while read filename
do
cat /path/to/your/passphrase |\
gpg --batch --yes --passprhase-fd 0 -se -r $recipient \
-o $theDir/$filename.gpg $theDir/$filename
done

Note: This assumes the variables 'theDir' and 'recipient'
are set to what you want. Obviously, you'll need to modify
the path to your passphrase. It also assumes that your
'options' file is setup appropriately.

Warning: Anyone at your site who can read a script will
know what your passphrase is using this method.



> -----Original Message-----
> From: gnupg-users-admin [at] gnupg [mailto:gnupg-users-admin [at] gnupg]On
> Behalf Of Erich Kolb
> Sent: Tuesday, June 26, 2001 4:01 PM
> To: gnupg-users [at] gnupg
> Subject: Scripts
>
>
> Does anyone happen to have a shell script that will automatically encrypt
> all files in a directory?
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users [at] gnupg
> http://lists.gnupg.org/mailman/listinfo/gnupg-users


agreene at pobox

Jun 27, 2001, 5:47 AM

Post #3 of 4 (153 views)
Permalink
RE: Scripts [In reply to]

On Tue, 26 Jun 2001, Daryl Krauter wrote:
>Note: This assumes the variables 'theDir' and 'recipient'
>are set to what you want. Obviously, you'll need to modify
>the path to your passphrase. It also assumes that your
>'options' file is setup appropriately.
>
>Warning: Anyone at your site who can read a script will
>know what your passphrase is using this method.

Or you could just use public key encryption and keep the secret key and
passphrase to yourself.

Tony
--
Anthony E. Greene <agreene [at] pobox> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05 MSN: te_greene
Linux. The choice of a GNU Generation. <http://www.linux.org/>


wk at gnupg

May 24, 2012, 7:06 AM

Post #4 of 4 (93 views)
Permalink
Re: Scripts [In reply to]

On Thu, 24 May 2012 14:04, tanguy.herrmann [at] gmail said:

> But for example, I don't know how to display only the fingerprint of a key
> without all the display around that I must grep/cut/sed away. But maybe I

$ gpg --fingerprint --with-colons 1e42b367 | awk -F: '$1=="fpr" {print $10}'
80615870F5BAD690333686D0F2AD85AC1E42B367

If you have more than one key with the given key id it will list all
fingerprints. Better scripts also display information from the pub and
uid records. doc/DETAILS has the format.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.