{"uid":"cap_3pYBDY0mN_2hhfFV93tWz","slug":"api-x402node-dev-550e87c8","name":"AES-256-GCM Encrypt","description":"AES encryption, AES-256-GCM, symmetric encryption, authenticated encryption, data encryption, secure encryption, cipher, encrypt string. Encrypt plaintext using AES-256-GCM with a 32-byte key. Returns IV, ciphertext, and authentication tag.","url":"https://api.x402node.dev/crypto/aes-encrypt","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["key"],"properties":{"iv":{"type":"string","description":"Init vector (hex) (optional)"},"key":{"type":"string","description":"Key (hex) (required)"},"plaintext":{"type":"string","description":"Text to encrypt (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.016","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.016/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.016","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.016","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_33ojU-iBuqmxM91IKVBq3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.016","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encrypts a plaintext string using AES-256-GCM authenticated encryption, returning the IV, ciphertext, and authentication tag.","exampleAgentPrompt":"Encrypt the string 'Hello, World! This is my secret message.' using AES-256-GCM with the 32-byte key 'mySecretKey12345678901234567890ab' and give me back the IV, ciphertext, and auth tag.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the initialization vector (IV), the AES-256-GCM ciphertext (encrypted data), and the authentication tag — all necessary to later decrypt and verify the data using the same key.","failureModes":["Key is not exactly 32 bytes — returns 400 Bad Request","Plaintext is missing or empty — returns 400 Bad Request","Malformed request body — returns 400 or 422","Payment not provided or insufficient — returns 402 Payment Required","Server-side encryption error — returns 500 Internal Server Error"],"whenToPreferThis":"Choose this endpoint when you need authenticated symmetric encryption (AES-256-GCM) via a simple API call without setting up a local crypto library. Ideal for AI agents in serverless or sandboxed environments that cannot execute native crypto code, or when you want a quick, pay-per-use encryption step in a data pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:42:45.189Z","isFirstParty":false}