Re: How to send encrypted data in an xml file

2010-11-09 Thread Peter Pentchev
On Mon, Nov 08, 2010 at 04:02:27PM -0500, David Jourard wrote:
> Hi,
> 
> I would like to encrypt a value to a field which is part of data record
> which I'm storing as an xml record.
> 
> Its seems that the ascii armour representation has line feeds. Is it
> possible to represent the data in ascii format without the line feeds.

The ASCII-armoured message format is defined in section 6 of RFC 4880;
it always includes newlines.

Have you thought about including the ASCII-armoured signature in
a CDATA section of your XML file?  Or, alternatively, "simply" encoding
the line break characters as 
 and 
 as specified in section 2.11
of the XML 1.0 specification?

If neither of those is possible, you could always try to encode
the signature in some other way - e.g. take a binary signature and represent
the string of octets as text in some way... of course, that would mean
the recipient would have to know exactly how to decode it.

G'luck,
Peter

-- 
Peter Pentchev  r...@space.bgr...@ringlet.netr...@freebsd.org
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If you think this sentence is confusing, then change one pig.


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


gpg non interactive

2010-11-09 Thread Gilbert Wong
Hi,

I am writing a parameter file for gpg --batch. What are the parameters if i 
want to select Key Type as the "DSA and ElGamal (default)"?

Regards,
Gilbert



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


Re: Can't suppress "good signature" status message

2010-11-09 Thread Skip Montanaro

> Reading through old posts I saw various recommendations to
> use status-fd, status-file or to redirect stderr to stdout
> and use grep -v to eliminate those lines.  The status-fd
> and status-file flags don't work as far as I can tell

No ideas on how to suppress the "good signature" output in
1.4.11?

Thx,

Skip





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


changing usage flags on a primary key

2010-11-09 Thread Daniel Kahn Gillmor
Hi GnuPG Folks--

Let's say i have an OpenPGP primary key with usage flags ECSA set (some
keys like this have been known to be generated by GUI tools).

Say i wanted to convert this key into a decent primary key with a
reasonable/standard set of usage flags (e.g. CS or just C); is this
something i can do with GnuPG?

Basically, i'm asking about creating a new self-sig packet with a
modified key usage flags subpacket on a key that i control.  How would i
do that with GnuPG?

Thanks,

--dkg



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users