How to create an encrypted partition on an usb stick or usb harddrive in 6 steps:
Partition the stick/hard drive (we assume it is located under /dev/sdb)
fdisk /dev/sdb
Setup the encrypted partition with cryptsetup
cryptsetup -c aes-cbc-essiv:sha256 -s 256 luksFormat /dev/sdb1
Optionally add aditional keys
cryptsetup luksAddKey /dev/sdb1
Open the container
cryptsetup luksOpen /dev/sdb1 some_name
Create the file system
mkfs.ext3 -L label -m 0 /dev/mapper/some_name
Close the container
cryptsetup luksClose some_name
