From a89f2a4e3eee21f740fcf573163c4a16666ffca0 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 24 Oct 2013 00:52:54 +0200 Subject: [PATCH] gnupg/gpg.conf: Use key stretching for private keys. --- gnupg/gpg.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnupg/gpg.conf b/gnupg/gpg.conf index 5697d17..57839cc 100644 --- a/gnupg/gpg.conf +++ b/gnupg/gpg.conf @@ -51,6 +51,18 @@ default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 BZIP cert-digest-algo SHA512 +# KEY PROTECTION + +# Mangle passphrases for private keys and symmetric encryption by applying a +# hash function (s2k-digest-algo) with a salt s2k-count times (default). +s2k-mode 3 +# Increase count. Takes ~0.5 seconds on my machine. +s2k-count 3538944 +# Use SHA-512 as hash function. Takes a little longer than SHA-1, which is the +# default. +s2k-digest-algo SHA512 + + # KEYSERVERS # Use the given keyserver. -- 2.45.2