Fixed file uploading, other more minor fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?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>";
|
||||
$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"');
|
||||
|
||||
Reference in New Issue
Block a user