DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Passphrase protected key file?
@ 2011-07-11 22:17 Laurence Darby
  2011-07-12 11:40 ` Jorge Fábregas
  2011-07-12 12:47 ` Arno Wagner
  0 siblings, 2 replies; 30+ messages in thread
From: Laurence Darby @ 2011-07-11 22:17 UTC (permalink / raw)
  To: dm-crypt

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

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2011-08-03 13:45 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-11 22:17 [dm-crypt] Passphrase protected key file? Laurence Darby
2011-07-12 11:40 ` Jorge Fábregas
2011-07-12 12:47 ` Arno Wagner
2011-07-14  9:10   ` Ma Begaj
2011-07-14 11:04     ` Arno Wagner
2011-07-14 11:55       ` Ma Begaj
2011-07-14 13:35         ` Arno Wagner
2011-07-14 14:12           ` Heiko Rosemann
2011-07-14 14:46             ` [dm-crypt] Status of trim for SSds? André Gall
2011-07-14 15:55               ` Milan Broz
2011-07-14 16:04                 ` Christoph Anton Mitterer
2011-07-14 16:39                 ` Philipp Wendler
2011-07-14 16:52                   ` Milan Broz
2011-07-14 17:14                     ` Philipp Wendler
2011-07-15 13:59                 ` Christian Hesse
2011-07-15 14:48                   ` Milan Broz
2011-07-18  8:45                     ` Christian Hesse
2011-07-18 10:04                       ` Milan Broz
2011-07-18 10:16                         ` Christian Hesse
2011-07-21 12:55                           ` Christian Hesse
2011-07-24 17:18                 ` MkFly
2011-07-24 18:34                   ` Milan Broz
2011-07-14 19:27             ` [dm-crypt] Passphrase protected key file? Arno Wagner
2011-07-14 21:21               ` Heiko Rosemann
2011-07-14 21:44                 ` Arno Wagner
2011-07-15  5:33                   ` Iggy
2011-08-03 12:09                     ` Laurence Darby
2011-08-03 13:41                       ` Arno Wagner
2011-08-03 11:35   ` Laurence Darby
2011-08-03 13:45     ` Arno Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox