<?
//=============================//
// //
// encodeCookie v0.1 //
// encodeCookie Example //
// encodeCookie.Example.php //
// by Stanga Razvan //
// razvan_stanga@yahoo.com //
// http://www.phprebel.org //
// //
// MADE IN ROMANIA //
// //
//=============================//
/**
* class encodeCookie Example
*
* encode cookies before you send them
*
* Usage :
*
* require ('encodeCookie.Class.php');
* $eC = new encodeCookie;
* $eC->set_Cookie ($name, $value$, 1); // 1 is sticky (1 year)
* $value = $eC->get_Cookie ($name);
*
*/
require ('encodeCookie.Class.php');
$eC = new encodeCookie;
$e = $eC->encodeC ( md5 ('password') );
$d = $eC->decodeC ( $e );
echo "Original Cookie value : ".$d;
echo "<br><br>";
echo "Encoded Cookie value : ".$e;
?>
|