Login   Register  
PHP Classes
elePHPant
Icontem

File: Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 4 years ago
Size: 624 bytes
 

Contents

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

/**
 ============================================
FileName    : Example.php
Author        : Hatem Mohamed (http://www.itmideast.com)
Mail        : developer-php@hotmail.com
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');
echo 
$encoded."\n";

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