Encrypting containers/partitions using cryptsetup LUKS


This is LUKS: “LUKS is the standard for Linux hard disk encryption. By providing a standard on-disk-format, it does not only facilitate compatibility among distributions, but also provides secure management of multiple user passwords. In contrast to existing solution, LUKS stores all setup necessary setup information in the partition header, enabling the user to transport or migrate his data seamlessly.”

And now let’s start the fun!

First update the packages using “aptitude update”. Next let’s install the cryptsetup package by issuing:

root:/home# aptitude install cryptsetup

dd if=/dev/urandom of=testfile bs=1M count=10