Location: PHPKode > scripts > EnDe > ende/example.php
<?php 
require_once('class_ende.php');

$ende = new EnDe('secret key');

$username = 'myusername';
$password = 'mypassword';

echo 'username: '.$username;
echo '<br>';
echo 'password: '.$password;
echo '<br>';
echo '<br>';

$e_username = $ende->encrypt($username);
$e_password = $ende->encrypt($password);

echo 'encrypted username: '.$e_username;
echo '<br>';
echo 'encrypted password: '.$e_password;
echo '<br>';
echo '<br>';

echo 'decrypted username: '.$ende->decrypt($e_username);
echo '<br>';
echo 'decrypted password: '.$ende->decrypt($e_password);
echo '<br>';

//free resources
$ende->close();
?>
Return current item: EnDe