This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import requests.adapters | |
import requests.exceptions | |
from ssl import SSLError | |
import hashlib | |
# https://datatracker.ietf.org/doc/draft-koch-openpgp-webkey-service/?include_text=1 | |
# https://www.sektioneins.de/en/blog/18-11-23-gnupg-wkd.html | |
class PubkeySource: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openpgp | |
from datetime import datetime | |
# from validate_email import validate_email | |
pubkeys = [] | |
with open('/home/james/Desktop/sks/sks-dump-0000.pgp', 'rb') as fp: | |
s = datetime.now() | |
packets = openpgp.OpenPGPFile(fp) | |
print((datetime.now() - s).total_seconds()) |