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

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)

{
  "mcpServers": {
    "file-encryption-studio": { "type": "http", "url": "https://fileencryptionstudio.usefulweb.site/mcp" }
  }
}