Encrypted swap
From blag.wiki.aktivix.org
Revision as of 10:12, 31 March 2005 by 67.176.38.246 (Talk)
Here's a quick & dirty way to do encrypted swap...
Comment the swap line out of /etc/fstab.
Add this to /etc/rc.d/rc.local
echo "Setting up encrypted swap" swapoff -a cryptsetup remove swap cryptsetup --key-file=/dev/random --key-size=256 --cipher=twofish-cbc-essiv:sha256 create swap /dev/hda2 mkswap /dev/mapper/swap swapon /dev/mapper/swap
Be sure to substitute your swap partition for /dev/hda2!!!