Overview
- Category
- Security
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/rsa-encrypt-decrypt
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/rsa-encrypt-decrypt/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
input· string · required- Enter plaintext or base64 ciphertext.
mode· string · required-
Enter operation. Accepted values:
roundtrip, encrypt. key_size· number · required- Enter rsa key size.
{
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "Enter plaintext or base64 ciphertext."
},
"mode": {
"type": "string",
"description": "Enter operation.",
"enum": [
"roundtrip",
"encrypt"
]
},
"key_size": {
"type": "number",
"description": "Enter rsa key size."
}
},
"required": [
"input",
"mode",
"key_size"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
result· string- Ciphertext produced by the tool.
algorithm· string- Algorithm produced by the tool.
parameters· array- Parameters produced by the tool.
notice· string- Security notice produced by the tool.
{
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Ciphertext produced by the tool."
},
"algorithm": {
"type": "string",
"description": "Algorithm produced by the tool."
},
"parameters": {
"type": "array",
"description": "Parameters produced by the tool."
},
"notice": {
"type": "string",
"description": "Security notice produced by the tool."
}
},
"additionalProperties": false
}
RSA Encrypt / Decrypt worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/rsa-encrypt-decrypt/execute" \
-H "Content-Type: application/json" \
-d '{
"input": "Private local message",
"mode": "roundtrip",
"key_size": 2048
}'
{
"ok": true,
"data": {
"slug": "rsa-encrypt-decrypt",
"result": {
"values": {
"result": "ja9yp32wIEuiv8qvPEoJciVJmQ84uE6429ZPeazMir3MpuDdu4G2idVjxVFiDRPRFi72P0qXghp/R/bIH6XdMk9a4DbQFL1UtQcRyKEnfniud5oKXODZQKHaHJAcA4dGgtqkaZUnwUE/rCSuOwXdlJW371j3CpZ1jjbto38d1YPzmpIiV8h1ORL/jEJM5PM3MmzWX4gnu4gbYUAUI/S4/zQM0TqlglVub9DjfOmjuKWjLJeg0zAl159dYZO88CbIU9Uk8iso3veGzhR7QxJlp2+wO1qVaWql0qd2uxmTAcOOCSXUkiJDb/KdClMLxggzAhkiUN28DTJvB+hvPYgFHQ==",
"algorithm": "RSA-OAEP with SHA-256",
"parameters": [
{
"parameter": "Key size",
"value": "2048 bits"
},
{
"parameter": "Public exponent",
"value": "65537"
},
{
"parameter": "Round-trip check",
"value": "Pass"
}
],
"notice": "A temporary key pair was generated for this browser operation and is not retained."
},
"display": {
"display": "ja9yp32wIEuiv8qvPEoJciVJmQ84uE6429ZPeazMir3MpuDdu4G2idVjxVFiDRPRFi72P0qXghp/R/bIH6XdMk9a4DbQFL1UtQcRyKEnfniud5oKXODZQKHaHJAcA4dGgtqkaZUnwUE/rCSuOwXdlJW371j3CpZ1jjbto38d1YPzmpIiV8h1ORL/jEJM5PM3MmzWX4gnu4gbYUAUI/S4/zQM0TqlglVub9DjfOmjuKWjLJeg0zAl159dYZO88CbIU9Uk8iso3veGzhR7QxJlp2+wO1qVaWql0qd2uxmTAcOOCSXUkiJDb/KdClMLxggzAhkiUN28DTJvB+hvPYgFHQ=="
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.