Providing shell-completions for gpg, minor scripting issues

David Shaw dshaw at jabberwocky.com
Mon Jan 16 14:58:34 CET 2006


On Fri, Jan 13, 2006 at 03:34:08PM +0100, Axel Liljencrantz wrote:

> Home: ~/.gnupg
> Stödda algoritmer:
> öppen nyckel: RSA, RSA-E, RSA-S, ELG-E, DSA
> Chiffer: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
> Kontrollsumma: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512
> Komprimering: Okomprimerad, ZIP, ZLIB, BZIP2
> 
> As you can see, the format is locale dependant. I'm also worried that
> changed phrasing, further algorithm subdivision, etc. will mean that
> my parsing rules will break. To get a locale independant format, I
> have to invoke GPG with a LC_ALL set to C. This doen't seem very
> optimal to me. Is there some other way of getting this information
> that I've missed? If not, could perhaps the --with-colons switch be
> made to act on --version as well, to get an more robust format?

gpg --with-colons --list-config

Note the "pubkey", "cipher", "digest", and "compress" fields.

David



More information about the Gnupg-users mailing list