1.0.7 defaults ?
David Scribner
dscribner@yahoo.com
Sun Sep 15 00:37:01 2002
--- Paradigm-Omega <scout@paradigm-omega.com> wrote:
> I've looked through the documentation, but may have missed it.
> Is there any way to change the default from sha1 to ripe160?
> Or, change the default cipher to twofish?
If you're wanting to change the prefered hashes and cipher algos
in your key, this can be done with 'gpg --edit-key <keyid>'
This will bring up the interactive key editing menu (type 'help'
to get a full list of interactive menu options). Typing
'showpref' will display the current preferences for the key,
listing the cipher algos, hashes and compression libs. You can
change the preferences in the list by typing 'pref' to compare
the preference values with those shown with 'showpref' (which is
more verbose), and then using 'setpref <string>' to set your
key's preferences to the values given in the <string>, and then
update the preferences with 'updpref'.
For example, S7 is AES, S10 is TWOFISH, etc. for a couple of the
cipher algos, H3 is RIPEMD160, and H2 is SHA1 for hashes, and Z2
is ZLIB and Z1 is ZIP for compression. Let's say that you want
to change your preferences to use only TWOFISH for the cipher
algo, RIPEMD160 for the hash and ZLIB for compression...
$ gpg --edit-key 0x91EC5F05
Command> showpref
pub 1024D/18E19CAB created: 2002-03-02 expires: never
trust: u/u
(1). Ima GnuPGuser <abuse@antispam.com>
Cipher: AES, TWOFISH, CAST5, BLOWFISH, 3DES
Hash: RIPEMD160, SHA1
Compression: ZLIB, ZIP
Command> pref
pub 1024D/18E19CAB created: 2002-03-02 expires: never
trust: u/u
(1). Ima GnuPGuser <abuse@antispam.com>
S7 S10 S3 S4 H3 H2 Z2 Z1
Command> setpref S10 H3 Z2
Command> updpref
Command> quit
$
This will change your key's preferences for the chosen cipher
algos, hash and compression to be used to those you specified in
the <string>.
You can also include in your ~/.gnupg/options (soon to be
~/.gnupg/gpg.conf with the release of 1.2) the option
'--cipher-algo <name>' where <name> is one of the supported
cipher algos (can be found with 'gpg --version'), or you could
also also indicate in your options file the line
'--preference-list <string>' (where <string> is a list of
preferences as would be used with 'setpref' in the --edit-key's
interactive menu.
I hope this is what you were looking for. More information on
setting your preferences using both the interactive menu in
'--edit-key' and the options file can be found in the man pages
if needed.
Dave
=====
David D. Scribner
IT Consulting & Services
CompTIA Linux+, Network+, A+ Certified
Ph: (817) 461-4018 eFax: (630) 214-7769
dscribner_at_bigfoot.com http://www.bigfoot.com/~dscribner/
GnuPG/PGP: 3172 7408 58CA D9C2 F697 950F 9DDC 7AC7 91EC 5F06
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com