--throw-keyid and -R options

2005-09-24 Thread privacy.at Anonymous Remailer

Is there any difference between the effects of following commands?

gpg -e -R alice -R bob file

gpg -e -r alice -r bob --throw-keyid file


And when I abbreviate --throw-keyid to --throw or --throw-keyi even, I
get the error:

gpg: Option "--throw-key" is ambiguous


There is nothing else that starts with the string "throw" so why?

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


GPG Passphrase on the command line

2005-09-24 Thread Low, Claudia
Hi,

  Is there an option, eg. --passphrase, that I can use so that I can
pass the passphrase in the command line when doing a signing, symmetric
encryption or decryption? Without this option, I will be prompted on the
console.
  In my program, I can only use command line to execute the commands. I
am not able to pass in the passphrase from a file (using file
descriptor).
 
  Please kindly help.

  Thanks,
Claudia

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


Re: GPG Passphrase on the command line

2005-09-24 Thread Tracy D. Bossong
You didn't specify your platform, but in Windows it's
done like this:

echo mypasshrase|gpg --encrypt --passphrase-fd 0.

--- "Low, Claudia" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
>   Is there an option, eg. --passphrase, that I can
> use so that I can
> pass the passphrase in the command line when doing a
> signing, symmetric
> encryption or decryption? Without this option, I
> will be prompted on the
> console.
>   In my program, I can only use command line to
> execute the commands. I
> am not able to pass in the passphrase from a file
> (using file
> descriptor).
>  
>   Please kindly help.
> 
>   Thanks,
> Claudia
> 
> ___
> 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


Re: --throw-keyid and -R options

2005-09-24 Thread David Shaw
On Wed, Sep 21, 2005 at 03:46:12PM +0200, privacy.at Anonymous Remailer wrote:
> 
> Is there any difference between the effects of following commands?
> 
> gpg -e -R alice -R bob file
> 
> gpg -e -r alice -r bob --throw-keyid file

Since you are using -R (which does a per-recipient --throw-keyid) for
both recipients, there is no difference between the two commands.

> And when I abbreviate --throw-keyid to --throw or --throw-keyi even, I
> get the error:
> 
> gpg: Option "--throw-key" is ambiguous
> 
> 
> There is nothing else that starts with the string "throw" so why?

There is: there are both options --throw-keyid and --throw-keyids
(they do the same thing).  Come to think though, --throw-keyid could
be removed since is effectively an abbreviation of --throw-keyids.

David

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


Strange problem and key preferences

2005-09-24 Thread lusfert
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello!

I'm currenly using GnuPG 1.4.2 on WinXP SP2 and I have a problem:

When I write

gpg -d file.ext.asc

I receive long output of hard readable characters and PC Speaker loud
beeping. I can stop this only by manual ending processes cmd.exe and
gpg.exe via Task Manager.
Is it possible to avoid this? For example, ask for an output location
(file, etc.) as gpg asks for recipient when he/she/it isn'n specified.

Also I didn't understand how to set up preferences for a key: allowed
and preferred ciphers, digest algorithms and compress methods. It is
possible to set up them using PGP Desktop 9.

Regards

- --
Current OpenPGP key ID: 0x500B8987
Fingerprint: E883 045D 36FB 8CA3 8D69  9C79 9E35 3B56 500B 8987
Keyserver to use: sks.keyserver.penguin.de
Encrypted mail preferred.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)

iD4DBQFDNa+bnjU7VlALiYcRA7+CAKC4cW6IK6k2h6CTuGhP8OzvZkGHSQCYumOq
gUSOFscrigrX3NMjb/sJ9Q==
=bV6s
-END PGP SIGNATURE-

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


Re: Strange problem and key preferences

2005-09-24 Thread Tracy D. Bossong
use:

gpg --use-embedded-filename file.ext.asc

I think that is what you are looking for... or use

gpg --decrypt --output file.ext file.ext.asc



--- lusfert <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: RIPEMD160
> 
> Hello!
> 
> I'm currenly using GnuPG 1.4.2 on WinXP SP2 and I
> have a problem:
> 
> When I write
> 
> gpg -d file.ext.asc
> 
> I receive long output of hard readable characters
> and PC Speaker loud
> beeping. I can stop this only by manual ending
> processes cmd.exe and
> gpg.exe via Task Manager.
> Is it possible to avoid this? For example, ask for
> an output location
> (file, etc.) as gpg asks for recipient when
> he/she/it isn'n specified.
> 
> Also I didn't understand how to set up preferences
> for a key: allowed
> and preferred ciphers, digest algorithms and
> compress methods. It is
> possible to set up them using PGP Desktop 9.
> 
> Regards
> 
> - --
> Current OpenPGP key ID: 0x500B8987
> Fingerprint: E883 045D 36FB 8CA3 8D69  9C79 9E35
> 3B56 500B 8987
> Keyserver to use: sks.keyserver.penguin.de
> Encrypted mail preferred.
> 
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.2 (MingW32)
> 
>
iD4DBQFDNa+bnjU7VlALiYcRA7+CAKC4cW6IK6k2h6CTuGhP8OzvZkGHSQCYumOq
> gUSOFscrigrX3NMjb/sJ9Q==
> =bV6s
> -END PGP SIGNATURE-
> 
> ___
> 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


Re: GPG Passphrase on the command line

2005-09-24 Thread Johan Wevers
Low, Claudia wrote:

>  Is there an option, eg. --passphrase, that I can use so that I can
>pass the passphrase in the command line when doing a signing, symmetric
>encryption or decryption? Without this option, I will be prompted on the
>console.

No, you'll have to pipe it through a file descriptor with --passphrase-fd.
But with the echo command it can be done on a commandline too on fd 0:
echo password | gpg --passphrase-fd 0 --decrypt / --encrypt.

For some reasons I don't completely understand the GnuPG developers feel
this is less insecure than a normal commandline (you're certainly not the
first to ask this...).

>  In my program, I can only use command line to execute the commands. I
>am not able to pass in the passphrase from a file (using file
>descriptor).
 
Piping doesn't necessarily require a file. I don't know what language your
application is in, but for C or C++, see pipe(), dup2() and fork().

-- 
ir. J.C.A. Wevers //  Physics and science fiction site:
[EMAIL PROTECTED]   //  http://www.xs4all.nl/~johanw/index.html
PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html

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


Re: Strange problem and key preferences

2005-09-24 Thread Johan Wevers
lusfert wrote:

>gpg -d file.ext.asc
>
>I receive long output of hard readable characters and PC Speaker loud
>beeping.

You forgot to use -a for ASCII mode. As a Unix-like program, gpg does
nothing with extensions so calling an output filename something.asc
won't automagically trigger ASCII mode.

>Also I didn't understand how to set up preferences for a key: allowed
>and preferred ciphers, digest algorithms and compress methods. It is
>possible to set up them using PGP Desktop 9.

I've not looked at pgp since v5, so I don't know.

-- 
ir. J.C.A. Wevers //  Physics and science fiction site:
[EMAIL PROTECTED]   //  http://www.xs4all.nl/~johanw/index.html
PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html

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


Re: Strange problem and key preferences

2005-09-24 Thread Lionel Elie Mamane
On Sat, Sep 24, 2005 at 11:57:21PM +0400, lusfert wrote:

> Also I didn't understand how to set up preferences for a key:
> allowed and preferred ciphers, digest algorithms and compress
> methods. It is possible to set up them using PGP Desktop 9.

gpg --edit-key 0xKeyID
setpref "the preferences you want"
updpref
save

-- 
Lionel

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