Pgp Encryption Tool API
https://api.findutils.com/api/tools/pgp-encryption-tool/execute 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).
Request body
application/json-
mode
string required
Operation: encrypt, decrypt, or generate. One of
encrypt · decrypt · generate. -
text
string optional
encrypt: the plaintext message. decrypt: the "-----BEGIN ENCRYPTED MESSAGE-----" block (or raw base64).
-
public_key
string optional
encrypt: the recipient PEM public key (SPKI, "-----BEGIN PUBLIC KEY-----").
-
private_key
string optional
decrypt: the PEM private key (PKCS#8, a BEGIN PRIVATE KEY block).
-
modulus_length
integer optional
generate: RSA key size in bits. Default: 2048. One of
2048 · 3072 · 4096. Default2048.
Example arguments
Verified{
"mode": "generate"
} More Security tools
- Base32 Encode Encode UTF-8 text to RFC 4648 base32 (uppercase, "=" padding).
- Csp Generate Build a Content-Security-Policy header from a preset (strict, typical, google-analytics) and/or your own directives, and get the header…
- Data Sanitizer Sanitize untrusted text and return the cleaned output, a list of changes made, and a risk level.
- Dnpm Configurator Returns the five files of a hardened Docker-based npm wrapper (the ./dnpm bash script, .dnpm/Dockerfile, docker-compose.node.yml…
- Email Header Analyzer Return a structured analysis of raw email headers: sender, recipient, subject, date, message id, the Received hop chain with per-hop…
- Hash Comparison Tool Hash text with MD5, SHA-1, SHA-256, SHA-384, or SHA-512 and compare the hex digest with an expected hash.