Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Double encrypting a partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sat Oct 30, 2021 5:25 pm    Post subject: [SOLVED] Double encrypting a partition Reply with quote

Hello, I was wondering if it's possible and if I should encrypt my home partition multiple times.
I think it might be just as easy as encrypting the mapper and adding it to dmcrypt configuration,
but I don't know, so the question is that should I do it if it's possible and anything that could go wrong?
_________________
regards,
ari


Last edited by Ari_archer on Sat Oct 30, 2021 11:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Oct 30, 2021 5:46 pm    Post subject: Reply with quote

Yes it seems to work
Code:

─sda9                    8:9    0     1G  0 part 
│ └─enc1                254:16   0  1008M  0 crypt
│   └─enc2              254:17   0   992M  0 crypt


You might try to triple encrypt it even.
:)
The question is do you REALLY need to or is it some ego-booster?
_________________
:)


Last edited by alamahant on Sat Oct 30, 2021 5:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4127
Location: Bavaria

PostPosted: Sat Oct 30, 2021 5:51 pm    Post subject: Reply with quote

Ari_archer,

if you dont use 3DES you should not use the same cipher (e.g. AES) two times (this can weaken the alogorithm). Take different ciphers !
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Oct 30, 2021 6:52 pm    Post subject: Reply with quote

Ari_archer.

If you use a Chinese cypher, an American cypher and a Russian cypher, you might be proof against back doors in all three systems.
Maybe China, the USA and Russia share their cypher backdoors, so all you get is a very slow encrypted area and a false sense of security.

Of course, just because you are paranoid does not mean that "they" are not out to get you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sat Oct 30, 2021 11:43 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Ari_archer.

If you use a Chinese cypher, an American cypher and a Russian cypher, you might be proof against back doors in all three systems.
Maybe China, the USA and Russia share their cypher backdoors, so all you get is a very slow encrypted area and a false sense of security.

Of course, just because you are paranoid does not mean that "they" are not out to get you.



Don't worry, I'm not paranoid about the gonverment and stuff, my mother likes to go through my private conversations so one day when she almost found out that I was gay I started putting strong passwords on everything.

She hasn't figured out the password to my drive yet, but I mean, just to me safe
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sat Oct 30, 2021 11:44 pm    Post subject: Reply with quote

alamahant wrote:
Yes it seems to work
Code:

─sda9                    8:9    0     1G  0 part 
│ └─enc1                254:16   0  1008M  0 crypt
│   └─enc2              254:17   0   992M  0 crypt


You might try to triple encrypt it even.
:)
The question is do you REALLY need to or is it some ego-booster?


I don't REALLY need it and it's not an ego boost, but just want to be safe hah
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sat Oct 30, 2021 11:45 pm    Post subject: Reply with quote

pietinger wrote:
Ari_archer,

if you dont use 3DES you should not use the same cipher (e.g. AES) two times (this can weaken the alogorithm). Take different ciphers !


Thank you :)
_________________
regards,
ari
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21605

PostPosted: Sun Oct 31, 2021 12:29 am    Post subject: Reply with quote

For that threat model, you want a good strong password. The underlying cryptography barely matters, as it is unlikely she will attempt to defeat it by cryptanalysis. If she tries to get in at all, it will be by trying to guess the password. Anyone who correctly guesses the password will get in, no matter how strong the cryptography is. Thus, you want a password or passphrase that is too complex to be used by chance and sufficiently random that it would not show up on a list of informed guesses (pet's name, significant dates, etc.)
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2961
Location: Edge of marsh USA

PostPosted: Sun Oct 31, 2021 3:36 am    Post subject: Reply with quote

Single encryption, decently done, will protect you from your mother, and almost any other threat. Adding layers of encryption multiplies your chances of destroying your own system beyond recovery. The level or protection should be according to the use-case. This applies to everybody.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1997

PostPosted: Sun Oct 31, 2021 10:58 am    Post subject: Reply with quote

pietinger wrote:
... you should not use the same cipher (e.g. AES) two times (this can weaken the alogorithm). ...

I've used two rounds of ROT-13 since like forever! :-)
_________________
Greybeard
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4127
Location: Bavaria

PostPosted: Sun Oct 31, 2021 11:36 am    Post subject: Reply with quote

Goverp wrote:
I've used two rounds of ROT-13 since like forever! :-)

:lol:
Yes, also very secure ... its hard to break it 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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