From 6475180b4655b9b9da1166d931561375163fa756 Mon Sep 17 00:00:00 2001 From: Luke Ogburn <21106956+OakBaron@users.noreply.github.com> Date: Tue, 9 Apr 2019 19:04:38 -0400 Subject: [PATCH] Cleaned up unused files --- decryptFunc.php | 11 ++--------- download.php | 6 ------ fileUpload.php | 4 ---- uploaded.php | 3 --- 4 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 download.php delete mode 100644 fileUpload.php delete mode 100644 uploaded.php diff --git a/decryptFunc.php b/decryptFunc.php index f1bdf76..6a9e615 100644 --- a/decryptFunc.php +++ b/decryptFunc.php @@ -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 "
Your decrypted content:\ No newline at end of file diff --git a/uploaded.php b/uploaded.php deleted file mode 100644 index dcddbb7..0000000 --- a/uploaded.php +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file
"; + echo "Your decrypted content:
"; echo decrypt($ciphertext, $key, $iv, $tag);; ?> \ No newline at end of file diff --git a/download.php b/download.php deleted file mode 100644 index d03ce5f..0000000 --- a/download.php +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/fileUpload.php b/fileUpload.php deleted file mode 100644 index 2f8ad84..0000000 --- a/fileUpload.php +++ /dev/null @@ -1,4 +0,0 @@ -