<?php
// - Include Class
require_once('simplecrypt.php');
// - Starting Class
$simpleCrypt = new SimpleCrypt;
// - Example of text
$text = 'Hello World';
// - Encrypt
$crypt = $simpleCrypt->encode( $text );
// - Decrypt
$decrypt = $simpleCrypt->decode( $crypt );
// - Print text Encrypt
print('Encrypted: ' . $crypt);
print('<br />');
// - Print text Decrypt
print('Decrypted: ' . $decrypt);
|