PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Drozdov Alexander  >  Obj Codec  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: Obj Codec
Encrypt and decrypt text using a password
Author: By
Last change:
Date: 8 years ago
Size: 354 bytes
 

Contents

Class file image Download
<?
require_once('OBJ_CODEC.PHP');

$CODEC = new OBJ_CODEC();
$CODEC->PASSWORD = 'п';
$TEXT = 'Текст для шифрования';

print
'<textarea cols="100" rows="10">';
   
$T = $CODEC->INTERFACE->EXEC('ENCODE', array('TEXT'=>$TEXT));
    print
$T."\n";
   
$T = $CODEC->INTERFACE->EXEC('DECODE', array('TEXT'=>$T));
    print
$T."\n";
print
'</textarea>';


?>