Cleaned up unused files
This commit is contained in:
@@ -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);;
|
||||
?>
|
||||
Reference in New Issue
Block a user