Installing MCrypt PHP5 on Ubuntu 12.04

0
2700

Installing MCrypt PHP5 on Ubuntu 12.04

Hello ,

MCrypt is a replacement for the popular Unix crypt command.

Mcrypt provides the same functionality but uses several modern algorithms such as AES. Libmcrypt, Mcrypt’s companion, is a library of code which contains the actual encryption functions and provides an easy method for use.

It implements numerous cryptographic algorithms, mostly block ciphers and stream ciphers, some of which falls under export restrictions in the United States. Algorithms include DES, Blowfish, ARCFOUR, Enigma, GOST, LOKI97, RC2, Serpent, Threeway, Twofish, WAKE, and XTEA.

To install MCrypt  for PHP5 on Ubuntu 12.04 Linux system ;

apt-get install php5-mcrypt

or with root privileges

sudo apt-get install php5-mcrypt

After installing MCrypt you need to restart Apache ;

/etc/init.d/apache2 restart

or with root privileges

sudo /etc/init.d/apache2 restart

 

For more info about mcrypt, visit:

Official site

http://mcrypt.hellug.gr

PHP usage of mCrypt

http://www.php.net/manual/en/book.mcrypt.php