Location: PHPKode > scripts > Encryptor > encryptor/example.php
<?php
// Gets the class definition
include("class.encriptor.php");

// Data to be used
$key = "key";
$text = "text to be encrypted";

// Starts object with key
$crypt = new Encriptor($key);
// Generates encrypted version
$encp = $crypt->encrypt($text);
// Decrypts
$decp = $crypt->decrypt($encp);
?>
Return current item: Encryptor