get($id); if (!$data) { die('Paste not found.'); } if ($data['expire_time'] !== null && time() > (int)$data['expire_time']) { die('Paste has expired.'); } if ($data['password_hash']) { if (!isset($_POST['password'])) { echo ""; echo "
"; echo ""; echo ""; echo "
"; exit; } if (!password_verify($_POST['password'], $data['password_hash'])) { die('Wrong password.'); } } $decrypted = decryptText($data['encrypted_text'], $data['iv'], $config['master_key']); if ($decrypted === false) { die('Decryption failed.'); } ?> View Paste

Your Paste