diff --git a/decryptFunc.php b/decryptFunc.php
index 6a9e615..b648272 100644
--- a/decryptFunc.php
+++ b/decryptFunc.php
@@ -1,14 +1,34 @@
-iv);
- $tag = hex2bin($data->tag);
- $ciphertext = $data->content;
-
- echo "Your decrypted content:
";
- echo decrypt($ciphertext, $key, $iv, $tag);;
-?>
\ No newline at end of file
+
+
+
+
+ Encrytion and stuff
+
+
+
+
+ iv);
+ $tag = hex2bin($data->tag);
+ $ciphertext = $data->content;
+ $dec = decrypt($ciphertext, $key, $iv, $tag);
+
+ if($dec != ""){
+ echo "Your decrypted content:
";
+ echo "".$dec."
";
+ }else{
+ echo "Error
";
+ echo "Your content could not be decrypted.
Wrong password, maybe?
";
+ }
+ ?>
+
+ Encrypt another file
+ Decrypt another file
+
+
diff --git a/style.css b/style.css
index fd05d5a..84159d3 100644
--- a/style.css
+++ b/style.css
@@ -40,6 +40,9 @@ textarea{
font-size: 0.9em;
color: inherit;
}
+#decCont{
+ font-family: monospace;
+}
button{
display: block;
margin-left: auto;