{
  "slug": "text-encrypt",
  "name": "gizza-ai/text-encrypt",
  "version": "0.1.0",
  "title": "Text Encrypt — AES-256 encrypt/decrypt text with a passphrase — gizza.ai",
  "description": "Encrypt or decrypt text with a passphrase using AES-256-GCM, in your browser. Get a copy-pasteable token. Nothing is uploaded.",
  "tags": [
    "text encryption",
    "aes",
    "encrypt text",
    "decrypt text",
    "passphrase",
    "privacy"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/text-encrypt/",
    "markdown": "https://gizza.ai/tools/text-encrypt/index.md",
    "descriptor": "https://gizza.ai/tools/text-encrypt/tool.json",
    "deep_link_example": "https://gizza.ai/tools/text-encrypt/?text=Text%20to%20encrypt%2C%20or%20a%20token%20to%20decrypt&passphrase=A%20strong%20passphrase&mode=encrypt"
  },
  "cli": "gizza tool text-encrypt \"Text to encrypt, or a token to decrypt\" 'passphrase=A strong passphrase'",
  "tool": {
    "description": "Encrypt or decrypt text with a passphrase using AES-256-GCM (key derived via PBKDF2-HMAC-SHA256). mode=encrypt (default) turns text into a compact base64 token (a fresh random salt + nonce each time); mode=decrypt turns a token produced by this tool back into the original text. The same passphrase is required to decrypt; a wrong passphrase or tampered token fails cleanly. Runs locally — the text and passphrase never leave the device.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "mode": {
          "default": "encrypt",
          "description": "encrypt (default) turns text into a base64 token; decrypt turns a token back into text.",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        },
        "passphrase": {
          "description": "The passphrase. The same passphrase is required to decrypt.",
          "type": "string"
        },
        "text": {
          "description": "The text to encrypt, or the base64 token to decrypt.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "passphrase"
      ],
      "type": "object"
    }
  }
}