Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h17BUrtQyrmz for ; Tue, 12 Jul 2011 00:17:35 +0200 (CEST) Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 12 Jul 2011 00:17:35 +0200 (CEST) Received: from home.eagach.dyndns.org (unknown [81.187.127.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2C22C22E254 for ; Mon, 11 Jul 2011 18:17:34 -0400 (EDT) Date: Mon, 11 Jul 2011 23:17:32 +0100 From: Laurence Darby Message-Id: <20110711231732.596b8622.ldarby@tuffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dm-crypt] Passphrase protected key file? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello, My next question, what's the best way to have a passphrase protected key file? Should I encrypt it with GPG, and then do eg: gpg -d ~/pass_key | cryptsetup luksOpen --key-file - /dev/loop1 loop1 That has the advantage of using the same passphrase I use for everything else, but is there any security risk I'm not seeing? I read that encrypting something twice or with multiple ciphers is effectively a new unknown cipher, potentially trivially breakable - I don't think that applies here, but is there anything like that I need to watch out for? Alternatively, I could just do this: ( cat ~/pass_key ; cat ) | cryptsetup luksOpen --key-file - /dev/loop1 loop1 so I still have to provide both the key and passphrase, terminated with Ctrl-D. Any thoughts? Thanks, Laurence