Closed git70 closed 4 years ago
What does entire drive mean? If the drive is un partitioned, then encrypting "the entire drive" gives the same result as encrypting a partition and zuluCrypt supports both. If by "entire drive" you mean encrypting everything including the partition table, then zuluCrypt doesnt support this because this will mean first decrypting the drive and then manually reading the partition table with tools like kpartx or recent versions of losetup.
b.
The maximum password length is determined by cryptsetup and last time i checked, it was 8Mb.
I do the following: a) Wipe the entire disk Establishing a gpt partition table Establishing one large sda1 partition Encrypt LUKS sda1 It works or b) Wipe the entire disk Establishing a gpt partition table Encrypt LUKS sda It Works (without creating the sda1 partition) How better do you think?
Does the program make dd zero or random free space after deleting the original header?
A is better because there are tools out there that may not work well with un-partitioned devices. Partitioning your device guarantees that your drive will work everywhere and with everything.
Partitioning a drive wastes a bit of space because the partition will start somewhere inside the drive but adds an advantage that the start of the partition will be properly aligned based on whatever criteria the partitioning tool think is best.
zuluCrypt-cli can not create a volume with a detached header but it can:
Somebody requested an ability to create a volume with a detached header and i chose to implemenet it not by adding a switch in zuluCrypt-cli to add the ability, but to combine existing functionality in zuluCrypt-gui to achieve the same result.
What zuluCrypt-gui does when asked to create a LUKS volume with a detached header is:
For the purpose of secure, trouble-free and long-term storage of the archive, what will be better? Encrypted partition or encrypted one large file? (1-10TB)
So the de facto original header is first overwritten with random data and then with zeros?
Partition, a file can accidentally be deleted. You may say a file can easily be transfered to another location and that's a good thing but how easy is it to transfer a 10 terabyte file?
With a partition, keep a backup of the volume header and a backup of a partition table. You never know, a wrong step somewhere and you may accidentally overwrite first couple of sectors of the device.
The size of the header in the original device is overwritten with random data. The random data is obtained through writing zeros to a plan dm-crypt mapper created with a 64 byte key obtained from /dev/urandom.
Ok thx!
I write here because it can be useful to other users.
Create Encrypted Container In A Hard Drive function: Is there a difference between LUKS encrypting only partitions and the entire device? (for example /dev/sda instead of /dev/sda1) Is it safer or fewer other problems?
How does LUKS2+External Header work? a) Immediately saves the header in a different location b) First saves the header on the device / file, then copies it to another location and deletes the original If b) Does it overwrite a randomly released place?
What is the maximum password length? 512 characters?