#!/usr/bin/env python3 #-*- coding:utf-8 -*- import urllib.request import gnupg # 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") gpg = gnupg.GPG() key='jijibeti' try: y = gpg.decrypt(cipher.encode('utf-8'), passphrase=key) plaintext = y.data.decode('utf-8') except y.ok==False : plaintext = None print(y.status) print(plaintext, "\n")