PGP Tool: free API and local cryptography for agents Base: https://website2zip.com/pgp/api/v1 OpenAPI: https://website2zip.com/pgp/openapi.json Engine: https://website2zip.com/pgp/core.js Local example: https://website2zip.com/pgp/sdk-example.mjs No account, payment, or API key. API requests must use HTTPS. Set an identifying User-Agent, for example MyPGPAgent/1.0. The site's existing Cloudflare browser-integrity filter rejects some generic client identifiers (including Python-urllib). A 403 with Cloudflare error 1010 is an edge rejection, not a PGP API response. Python clients should explicitly set User-Agent. All operations use POST application/json except GET /health. Success: {"ok":true,"result":{...}} Error: {"ok":false,"error":{"code":"...","message":"..."}} Never treat HTTP 200 or ok:true alone as proof of a valid signature. For verify, require result.valid === true. For signed decrypt, require result.verification === "valid" and compare the sender's public-key fingerprint using a separate trusted channel. OpenPGP identity strings are self-asserted, not verified email addresses. Privacy: The HTTP API receives every supplied field. For decrypt/sign this includes private keys and passphrases. Key generation on the API happens on the server. The API does not intentionally persist payloads or output. Operational access metadata and short-lived rate counters are retained. Browser tools and the local SDK perform cryptography on the caller's device. No recovery by email. Use the SDK locally when private keys must not reach the server. POST /generate {"email":"agent@example.com"} Optional name, passphrase (minimum 12 characters), expireDays (0..3650; 0 means never), algorithm ("rsa4096" default, "curve25519" legacy v4 for GnuPG, or "modern25519" v6 for newer compatible OpenPGP software). Returns publicKey, encrypted privateKey, passphrase, revocationCertificate, fingerprint, userIDs, algorithm details, created and expires. Keep the same keys for future logins. New generation creates a new identity. Store the private key and passphrase securely; anyone with both can act as you. Do not print keys or passphrases in logs. POST /encrypt {"text":"hello","publicKeys":["-----BEGIN PGP PUBLIC KEY BLOCK-----..."]} Use dataBase64 instead of text for a file; filename is optional. publicKeys accepts a string of armored keys or an array, max 20 keys. password enables shared-password encryption (minimum 12 characters). If keys and password are both supplied, either can decrypt. Optional privateKey and passphrase sign during encryption. format "armored" (default) returns message. "binary" returns dataBase64. POST /decrypt {"message":"-----BEGIN PGP MESSAGE-----...","privateKey":"...","passphrase":"..."} Use dataBase64 for a binary encrypted file. Use password for symmetric decryption. format "binary" returns dataBase64; default returns UTF-8 text. Supply publicKeys to verify the sender. Responses include signatures and verification: unsigned, unverified, valid, or invalid-or-unknown. The latter two untrusted states must not be accepted as sender authentication. Filenames in messages are untrusted. Choose a safe destination yourself. POST /sign {"text":"exact challenge text","privateKey":"...","passphrase":"..."} Returns signedMessage. detached:true returns signature. Files use dataBase64 and always produce a detached signature. POST /verify {"signedMessage":"-----BEGIN PGP SIGNED MESSAGE-----...","publicKeys":["..."]} Detached: supply text OR dataBase64, signature, publicKeys. POST /inspect {"key":"..."} Returns publicKey, fingerprint, userIDs, algorithm, subkeys, dates, revoked, valid, private, protected. valid checks structure/self-signature/time, not identity. POST /change-passphrase {"privateKey":"...","passphrase":"...","newPassphrase":"..."} Omit newPassphrase to generate one. Returns a new private-key copy and passphrase. Old copies retain the old passphrase; fingerprint is unchanged. POST /revoke {"privateKey":"...","passphrase":"..."} Or {"key":"public key","revocationCertificate":"saved certificate"} Returns revoked publicKey. Distribution is the caller's responsibility. PGP login: 1. Create keys once, save them, register only publicKey with the target site. 2. Obtain its encrypted challenge and decrypt it using the same private key. 3. Return the response only to the site where you initiated the challenge. For signature challenges, sign the exact text required by the site. The tool cannot bypass CAPTCHAs or complete another site's account approval. Limits: 30 requests/minute and 4 generations/minute per network address. Shared ceiling: 120 requests and 12 generations/minute; 2 workers at once. 1 MiB JSON body; 512 KiB content/decompressed content; 256 KiB per key; 20 recipients; 25 seconds per request. No fees to raise by payment. Browser engine allows 20 MiB input/decompressed files; local SDK limit configurable. 429 RATE_LIMIT: wait Retry-After (60 seconds). 503 BUSY/TIMEOUT: wait Retry-After (5 seconds). 400 INVALID_JSON or INVALID_INPUT: fix input before retrying. 413 TOO_LARGE, 415 CONTENT_TYPE, 405 METHOD_NOT_ALLOWED, 404 NOT_FOUND. Error details intentionally avoid echoing secret input.