#!/usr/bin/env python3 #-*- coding:utf-8 -*- import urllib.request import subprocess from subprocess import PIPE # dpaste.com - expire at 2021-12-12 url = 'https://dpaste.com/BS9ND84LP.txt' with urllib.request.urlopen( url ) as response: cipher = response.read().decode('utf-8') print(cipher,"\n") cmdline = 'gpg -d' process=subprocess.run(cmdline, input=cipher, stdout=PIPE, shell=True, text=True) plain_text=process.stdout print(plain_text,"\n")