View previous topic :: View next topic |
Author |
Message |
avx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/22194535045e47d317d4f5.jpg)
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Sun Oct 26, 2008 3:56 pm Post subject: LUKS: possible to have password AND keyfile? |
|
|
Hello, I'm wondering, if it is possible to have two-factor-authentification with LUKS, so that both a keyfile(on an external media) and a password are required to unlock/open an encrypted partition? Unfortunately, I haven't found something on this, yet, so maybe you can help. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23103
|
Posted: Sun Oct 26, 2008 5:09 pm Post subject: |
|
|
Theoretically, a password-protected keyfile stored on external media should do what you want. LUKS would not honor the password, so knowing only the password would be useless. The keyfile could not be decrypted without its password, so only having the external media would be useless. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
avx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/22194535045e47d317d4f5.jpg)
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Sun Oct 26, 2008 7:16 pm Post subject: |
|
|
Well, the problem with this is, that there would be still only one password/passphrase to break. I'm currently using a gpg-protected keyfile, but having yet another passphrase would be nice. Of course, I could split the keyfile in two, protect both parts with gpg and then require to passwords for decrypting, rebuilding the single keyfile into one and pass this to luks - that would be possible, but a little hackish.
So, if I understand correct, there is no official way to require both password and keyfile with luks? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23103
|
Posted: Tue Oct 28, 2008 2:45 am Post subject: |
|
|
ph030 wrote: | Well, the problem with this is, that there would be still only one password/passphrase to break. |
Yes, but you never asked for two passwords. You asked for a password and a physical token. By storing the ciphertext on the token, a password without a token is useless. Without the token, it would not even be possible for an attacker to try to derive the password by brute force, since he needs the ciphertext to decrypt so that he knows when he has found the correct decryption key.
ph030 wrote: | So, if I understand correct, there is no official way to require both password and keyfile with luks? |
I am not aware of a way to do so, but I have never researched it to confirm that it is impossible. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|