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);;
?>