iv); //Get the tag $tag = hex2bin($data->tag); //Get the ciphertext $ciphertext = $data->content; echo "
Your decrypted content:
"; echo decrypt($ciphertext, $key, $iv, $tag);; ?>