initial commit

This commit is contained in:
Luke Ogburn
2019-04-20 17:12:07 -04:00
commit d9c3f306e6
8 changed files with 162 additions and 0 deletions

9
submit.php Normal file
View File

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