# Pgp Encryption Tool — REST API endpoint `pgp-encryption-tool`

Encrypt or decrypt a short message with RSA-OAEP (SHA-256) PEM keys, or generate a new RSA key pair. Returns the armoured ciphertext block, the decrypted plaintext, or the PEM public/private key pair. Note: this uses plain RSA-OAEP with SPKI/PKCS#8 PEM keys, not the OpenPGP message format. Messages are limited to the RSA block size (190 bytes for 2048-bit keys).

- Category: security
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/pgp-encryption-tool/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/pgp-encryption-tool/
- Same tool on the other surface: https://findutils.com/mcp/pgp-encryption-tool/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/pgp-encryption-tool/execute \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "generate"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/pgp-encryption-tool
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `mode` | string (encrypt \| decrypt \| generate) | yes | Operation: encrypt, decrypt, or generate. |
| `text` | string | no | encrypt: the plaintext message. decrypt: the "-----BEGIN ENCRYPTED MESSAGE-----" block (or raw base64). |
| `public_key` | string | no | encrypt: the recipient PEM public key (SPKI, "-----BEGIN PUBLIC KEY-----"). |
| `private_key` | string | no | decrypt: the PEM private key (PKCS#8, "-----BEGIN PRIVATE KEY-----"). |
| `modulus_length` | integer (2048 \| 3072 \| 4096) | no | generate: RSA key size in bits. Default: 2048. Default: `2048`. |

Example arguments (verified):

```json
{
  "mode": "generate"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:pgp_encryption_tool`. Full MCP reference: https://findutils.com/mcp/pgp-encryption-tool/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
