Cleaned up unused files

This commit is contained in:
Luke Ogburn
2019-04-09 19:04:38 -04:00
parent 2fa158402e
commit 6475180b46
4 changed files with 2 additions and 22 deletions

View File

@@ -3,19 +3,12 @@
$words = file_get_contents($_FILES["encDoc"]["tmp_name"]);
$data = simplexml_load_string($words) or die("Couldn't make object");
//Get the key
//Get the XML info in variables (hex2bin the iv and tag)
$key = $_POST["key"];
//Get the IV
$iv = hex2bin($data->iv);
//Get the tag
$tag = hex2bin($data->tag);
//Get the ciphertext
$ciphertext = $data->content;
echo "<pre>Your decrypted content:<br>";
echo "Your decrypted content:<br>";
echo decrypt($ciphertext, $key, $iv, $tag);;
?>

View File

@@ -1,6 +0,0 @@
<?php
$content = "content and things like it are here";
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="encrypted.txt"');
echo $content;
?>

View File

@@ -1,4 +0,0 @@
<form method=POST action=uploaded.php enctype="multipart/form-data">
<input type=file name=encDoc>
<button type=submit>SUBMIT</button>
</form>

View File

@@ -1,3 +0,0 @@
<?php
echo file_get_contents($_FILES["encDoc"]["tmp_name"]);
?>