<?php
require("srcrypt.class.php");
include("sampleKey.php");
$cr = new SRCrypt($key);
$cr->encrypt(file_get_contents("testfile.txt"));
?>
<h2>Once encrypted your file will look like this:</h2>
<textarea cols="100" rows="5"><?php echo $cr->result;?></textarea>
<?php
$cr->decrypt($cr->result);
if($cr->error) die($cr->error);
?>
<h2>Decrypt back to get this</h2>
<textarea cols="100" rows="50"><?php echo $cr->result;?></textarea>
|