Re: Testing the exit status

2009-10-10 Thread Werner Koch
On Fri,  9 Oct 2009 13:47, david.g...@turpin-distribution.com said:

 Does GPG return different status codes when it exits? 
 I'm specifically looking for different types of error, such 
 as file not found, key not found, invalid passphrase etc. 
 
This would not be reliable.  There are just too many stati to map them
to exit codes.  What you need to do is to use the status lines
(--status-fd N) - or just go with gpgme.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.


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


Re: beginner type questions

2009-10-10 Thread Hardeep Singh
try gpg --gen-key --expert

Hardeep Singh
http://blog.Hardeep.name



On Mon, Oct 5, 2009 at 9:37 PM, Durant, Dean ddur...@intevaproducts.com wrote:
 Hello, I noticed, on windows (which I truly despise), when I type

 C:\Documents and Settings\me\Application Data\gnupggpg --gen-key

 I get:

 gpg (GnuPG) 2.0.12; Copyright (C) 2009 Free Software Foundation, Inc. (add'l 
 copyleft info)

 Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)

 on ubuntu, I get these choices (the version of GPG is 2.0.9):
 Please select what kind of key you want:

 (1) DSA and Elgamal (default)
 (2) DSA (sign only)
 (5) RSA (sign only)

 What is the difference?   Isn't RSA better?

 I tried using apt-get to get the version on linux up to the same version # on 
 windows, and it wouldn't.

 Once you generate a key, is it bound to the email address supplied during 
 generation, so that, if someone else emails your key out, you won't be able 
 to decrypt something encrypted to their email?   Or is the email address 
 completely uninvolved?

 Thanks, Dean





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


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