Cleaned up unused files
This commit is contained in:
@@ -3,19 +3,12 @@
|
|||||||
$words = file_get_contents($_FILES["encDoc"]["tmp_name"]);
|
$words = file_get_contents($_FILES["encDoc"]["tmp_name"]);
|
||||||
$data = simplexml_load_string($words) or die("Couldn't make object");
|
$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"];
|
$key = $_POST["key"];
|
||||||
|
|
||||||
|
|
||||||
//Get the IV
|
|
||||||
$iv = hex2bin($data->iv);
|
$iv = hex2bin($data->iv);
|
||||||
|
|
||||||
//Get the tag
|
|
||||||
$tag = hex2bin($data->tag);
|
$tag = hex2bin($data->tag);
|
||||||
|
|
||||||
//Get the ciphertext
|
|
||||||
$ciphertext = $data->content;
|
$ciphertext = $data->content;
|
||||||
|
|
||||||
echo "<pre>Your decrypted content:<br>";
|
echo "Your decrypted content:<br>";
|
||||||
echo decrypt($ciphertext, $key, $iv, $tag);;
|
echo decrypt($ciphertext, $key, $iv, $tag);;
|
||||||
?>
|
?>
|
||||||
@@ -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;
|
|
||||||
?>
|
|
||||||
@@ -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>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<?php
|
|
||||||
echo file_get_contents($_FILES["encDoc"]["tmp_name"]);
|
|
||||||
?>
|
|
||||||
Reference in New Issue
Block a user