Create a LUKS (Linux Unified Key Setup) formatted, encrypted device:
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
Display encrypted device info:
cryptsetup luksDump /dev/sdb1
Open (unlock) encrypted device
cryptsetup open --type luks /dev/sdb1 crypt
Close (lock) encrypted device
cryptsetup close --type luks crypt
Add pass-phrase from key_file, total of eight are allowed
cryptsetup luksAddKey /dev/sdb1 /home/xyz/key_file
Remove pass-phrase previously added from key_file, undo the above AddKey step
cryptsetup luksRemoveKey /dev/sdb1 /home/xyz/key_file
Open encrypted drive using key file
cryptsetup open --type luks --key-file /home/xyz/key_file /dev/sdb1 crypt
awk (1) cryptsetup (1) dd (2) device (1) drive (1) encryption (2) ext (1) filesystem (1) firefox (1) grep (1) loop-back (1) losetup (1) mkfs (1) mount (1) protocol-handler (1) security (2) sed (1) ssh (3) stat (1) truncate (1) urandom (1)