Creating Encrypted Containers in Linux Using Cryptsetup
Too Long; Didn't ReadCryptsetup is a command line utility for encrypting storage devices and volumes. LUKS is the Linux Unified Key System. We create a 4GB container to store sensitive documents (or any info you may wish to keep private) You can use a keyfile to unlock your container or a password. A key file is more secure since it provides a higher entropy than a password. If you lose the key file then you can kiss your data goodbye. After the container is mounted, your regular user does not have the necessary permissions to create files or delete anything.