9 lines
321 B
PHP
9 lines
321 B
PHP
<?php
|
|
require "enc.php";
|
|
$enc = encrypt($_POST["words"], $_POST["key"]);
|
|
$content = '<iv>'.bin2hex($enc[1]).'</iv>'.'<tag>'.bin2hex($enc[2]).'</tag>'.'<content>'.$enc[0]."</content>";
|
|
|
|
header('Content-type: text/plain');
|
|
header('Content-Disposition: attachment; filename="encrypted.txt"');
|
|
echo $content;
|
|
?>
|