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