Skip to main content
Glama

Encrypt text (AES-256-GCM)

crypto_text_encrypt
Read-only

Encrypt text or UTF-8 files with a password using AES-256-GCM and PBKDF2-SHA256, producing a portable S3E1 base64 line for decryption on the companion website or decrypt tool.

Instructions

Encrypt a message with a password: AES-256-GCM, key from PBKDF2-SHA256 (600,000 rounds, random 16-byte salt, 12-byte IV), output as one "S3E1.…" base64 line. Exactly the website's format, so the result can be decrypted at https://s3eidat.github.io/text-encrypt/ or with crypto_text_decrypt. Each run gives a different output. Web version: https://s3eidat.github.io/text-encrypt/

Input Schema

NameRequiredDescriptionDefault
pathNoOr: a UTF-8 text file to encrypt.
textNoThe message to encrypt.
outputNoOptional: also save the encrypted line to this file (website "Save" gives encrypted.txt).
passwordYesThe password. Normalised to Unicode NFC first, like the website.
iterationsNoPBKDF2 rounds (website: 600,000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond annotations with KDF details (PBKDF2-SHA256, 600k rounds, random salt/IV), the 'S3E1…' output format, and the non-determinism note ('Each run gives a different output') which aligns with idempotentHint=false. The only tension is that readOnlyHint=true while the optional output param can write a file — disclosed but arguably inconsistent with the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core verb and algorithm, and every clause adds real information (rounds, IV, format, interop). The website URL is repeated twice, a minor redundancy that keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers algorithm, key derivation, output format, non-determinism, and how to reverse the operation. With no output schema, the description fully specifies the returned 'S3E1.…' line, so an agent has everything needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each of the 5 params is already documented, and the description adds no syntax or format guidance beyond implying defaults. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (encrypt a message with a password) and pins down the exact scheme (AES-256-GCM). It clearly distinguishes itself from the file sibling crypto_file_encrypt and names its inverse crypto_text_decrypt, so an agent can route without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the counterpart tool crypto_text_decrypt and the website as the decryption path, and explains the interoperability constraint. It doesn't spell out when to prefer it over crypto_file_encrypt (file vs. inline text), but the intent is clear from the resource.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools