A bash script to automate the most basic usage of LUKS volumes in Linux. Like:
Creating a virtual disk volume with LUKS format.Mounting an existing LUKS volumeUnmounting a Single LUKS volume or all LUKS volume in the system.Basic Usage
There is an option for a menu:
Other options include:
./luks-ops.sh mount /path/to/device (mountpoint)
./luks-ops.sh unmount-all
./luks-ops.sh clean
./luks-ops.sh usage
Default Options:
Virtual-disk size = 512 MB and it’s created on /usr/ directoryDefault filesystem used = ext4Cipher options: Creating LUKS1: aes-xts-plain64, Key: 256 bits, LUKS header hashing: sha1, RNG: /dev/urandomplain: aes-cbc-essiv:sha256, Key: 256 bits, Password hashing: ripemd160 (about-time :D)Mounting point = /media/luks_* where * is random-string.Others.. NB. You can change /dev/urandom to /dev/zero (speed?)Dependencies (Install applications:)
dmsetup — low level logical volume managementcryptsetup — manage plain dm-crypt and LUKS encrypted volumes