PHP Classes

File: example

Recommend this page to a friend!
  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: 18 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>';


?>