{
  "slug": "salsa20-cipher",
  "name": "gizza-ai/salsa20-cipher",
  "version": "0.1.0",
  "title": "Salsa20 Cipher — Encrypt/decrypt with Salsa20 (key + nonce) — gizza.ai",
  "description": "Encrypt and decrypt with the Salsa20 stream cipher in your browser — 16/32-byte key, 8-byte nonce, hex or base64 output. Free, private, nothing uploaded.",
  "tags": [
    "salsa20",
    "salsa20 encrypt",
    "salsa20 decrypt",
    "stream cipher",
    "djb",
    "estream",
    "cipher"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/salsa20-cipher/",
    "markdown": "https://gizza.ai/tools/salsa20-cipher/index.md",
    "descriptor": "https://gizza.ai/tools/salsa20-cipher/tool.json",
    "deep_link_example": "https://gizza.ai/tools/salsa20-cipher/?data=Text%20to%20encrypt%E2%80%A6&operation=encrypt&key=32-char%20passphrase%2C%20or%20encoded%20key&nonce=8-char%20string%2C%20or%2016-char%20hex&key_format=text&counter=0&format=hex"
  },
  "cli": "gizza tool salsa20-cipher \"Text to encrypt…\" 'key=32-char passphrase, or encoded key' 'nonce=8-char string, or 16-char hex'",
  "tool": {
    "description": "Encrypt or decrypt data with the Salsa20 stream cipher (Salsa20/20). operation = encrypt (default) or decrypt — Salsa20 is symmetric. key must be 16 or 32 bytes and nonce exactly 8 bytes, read as UTF-8 (key_format=text, default) or decoded from hex/base64 (key_format=encoded). counter is the initial 64-bit block counter (default 0). The ciphertext (and an encoded key/nonce) use format = hex (default) or base64; the plaintext is UTF-8.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "counter": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "format": {
          "default": "hex",
          "enum": [
            "hex",
            "base64"
          ],
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "key_format": {
          "default": "text",
          "enum": [
            "text",
            "encoded"
          ],
          "type": "string"
        },
        "nonce": {
          "type": "string"
        },
        "operation": {
          "default": "encrypt",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "key",
        "nonce"
      ],
      "type": "object"
    }
  }
}