PHP Classes

File: Example.php

Recommend this page to a friend!
  Classes of Hatem Mohamed   Encryption With PHP   Example.php   Download  
File: Example.php
Role: Class source
Content type: text/plain
Description: Example
Class: Encryption With PHP
Encrypt and decrypt data using Mcrypt
Author: By
Last change: Example
Date: 13 years ago
Size: 624 bytes


Class file image Download
 * To change this template, choose Tools | Templates
 * and open the template in the editor.

FileName : Example.php
Author : Hatem Mohamed (
Mail :
Country : Egypt
Class Name : Encryption With PHP Mcrypt
Date : May 2010

// a new proCrypt instance
$crypt = new proCrypt;

// encrypt the string
$encoded = $crypt->encrypt( 'my message');

// decrypt the string
echo $crypt->decrypt( $encoded ) . "\n";