PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Test1   Encryption Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Encryption Class
Encrypt and decrypt data with mcrypt
Author: By
Last change:
Date: 15 years ago
Size: 358 bytes
 

Contents

Class file image Download
<?php
//This class facilitates encoding data to pass between two can be used for
//encoding & decoding for cookie value or url param.


require_once "Encryption.class.php";
$oEncryption = new Encryption;
echo
"Encoded Value: ".$oEncryption->enc("sudhir");
echo
"<br/>";
echo
"Decoded Value: ".$oEncryption->dec($oEncryption->enc("sudhir"));

?>