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:
"; + 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 @@ -
- - -
\ 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