mcrypt (Pete's notes)

Mcrypt needs mhash, so get/install it first. Web to the mhash home page. Download mhash-0.8.13.tar.gz.
cd /usr/src
gunzip mhash-0.8.13.tar.gz
tar xf mhash-0.8.13.tar
rm mhash-0.8.13.tar
cd mhash-0.8.13/
./configure
make
make install
make clean
Web to the mcrypt home page. Download mcrypt-2.5.11.tar.gz and libmcrypt-2.4.20.tar.gz.
cd /usr/src
gunzip libmcrypt-2.4.20.tar.gz
tar tf libmcrypt-2.4.20.tar
rm libmcrypt-2.4.20.tar
cd libmcrypt-2.4.20
./configure
make
make check
make install
make clean
gunzip mcrypt-2.5.12.tar.gz
tar xf mcrypt-2.5.12.tar
rm mcrypt-2.5.12.tar
cd mcrypt-2.5.12
export LD_LIBRARY_PATH=/usr/local/lib/
./configure
make
make check
make install
make clean
To encrypt a file using the standard Unix "crpyt" algorithm, do
mcrypt -a enigma --keymode scrypt --bare filename
This will prompt you for the password and then produce filename.nc. To decrypt the file, use
mdecrypt -a enigma --keymode scrypt --bare filename.nc

Pete Siemsen
Last modified: Fri Feb 22 10:08:27 MST 2002