API & MCP

Everything a person can do on Local File Encryption Studio, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://fileencryptionstudio.usefulweb.site/api/v1/calculate – run Local File Encryption Studio
  • GET https://fileencryptionstudio.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Local File Encryption Studio

Encrypts any file up to 100 MB with AES-256-GCM, using a password (PBKDF2-SHA-256, at least 600,000 iterations) or a raw 256-bit key, and decrypts it again. The output is a small documented container.

Inputs of Local File Encryption Studio
FieldTypeDefaultDescription
actionselect (encrypt, decrypt)"encrypt"Action
file (required)file—File. Up to 100 MB.
keyModeselect (password, rawkey)"password"Key
passwordtext—Password. Use a long passphrase. It cannot be recovered: without it the file is lost.
rawKeytext—Raw key (64 hex or 44 Base64 characters). Raw-key mode. Leave empty when encrypting to generate a random key (shown once).
iterationsinteger600000PBKDF2 iterations (encrypt). At least 600,000 (OWASP 2023 recommendation for PBKDF2-HMAC-SHA-256). Decryption reads the value from the file.
seedtext—Demo seed (optional; fixes salt and IV — never for real files). Only for reproducible demos. Reusing a salt/IV with the same password breaks AES-GCM security.

Example request

Encrypt a text file with a password (demo seed)

curl -X POST https://fileencryptionstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"action":"encrypt","file":{"filename":"notes.txt","contentType":"text/plain","contentBase64":"TWVldGluZyBub3RlczogdGhlIHNwYXJlIGtleSBpcyB1bmRlciB0aGUgYmx1ZSBmbG93ZXJwb3QuCg=="},"keyMode":"password","password":"correct horse battery staple","seed":"demo"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://fileencryptionstudio.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: file_encryption_studio
  • Local stdio connector: node src/mcp-stdio.ts --tool=file-encryption-studio
{
  "mcpServers": {
    "file-encryption-studio": { "type": "http", "url": "https://fileencryptionstudio.usefulweb.site/mcp" }
  }
}