AgentPMT
Encrytion Decryption Toolkit

Encrytion Decryption Toolkit

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

generate5crhash5crhmac5crsign5crencrypt5crdecrypt5cr

Details

This function supports six core actions: generate for creating secure random values in ASCII, BASE64, HEX, or UUID formats with configurable lengths from 4 to 256 characters; hash for computing cryptographic digests using MD5, SHA256, SHA384, SHA512, and SHA3 family algorithms; hmac for generating keyed-hash message authentication codes with a secret key; sign for creating digital signatures using RSA (RS256, RS512) or ECDSA (ES256, ES384, ES512) algorithms with PEM-encoded private keys; and encrypt/decrypt for AES-256-GCM authenticated encryption with support for initialization vectors and optional additional authenticated data. Users can provide input as plain text or base64-encoded binary data, and all cryptographic outputs can be encoded in either hexadecimal or base64 format for flexibility across different system integrations. The toolkit handles the underlying cryptographic complexity while exposing a straightforward interface, making it ideal for agent workflows that require secure token generation, data integrity verification, or sensitive information protection.

Use Cases

Generating secure API keys or access tokens for authentication systems, creating unique UUIDs for database record identifiers, computing file checksums to verify data integrity during transfers, validating webhook payloads by computing and comparing HMAC signatures, signing JWT tokens for stateless authentication in API workflows, encrypting sensitive configuration values or credentials before storage, decrypting stored secrets at runtime for secure credential injection, generating session tokens or one-time codes for user verification flows, creating content hashes for deduplication or caching key generation, signing API requests to third-party services that require cryptographic authentication

Actions(6)

generate5cr3 params(2 required)

Generate a cryptographically secure random value in ASCII, BASE64, HEX, or UUID format.

Generate a cryptographically secure random value in ASCII, BASE64, HEX, or UUID format.

property_namerequiredstring

Name of the property to write the output to.

generation_typerequiredstring

Type of value to generate: ASCII, BASE64, HEX, or UUID.

Values:
ASCIIBASE64HEXUUID
lengthinteger

Length of the generated value (ignored for UUID). Default: 32.

Default: 32
Range: 4 - 256
hash5cr7 params(1 required)

Compute a cryptographic hash of text or binary data using MD5, SHA, or SHA3 algorithms.

Compute a cryptographic hash of text or binary data using MD5, SHA, or SHA3 algorithms.

hash_algorithmrequiredstring

Hash algorithm to use.

Values:
MD5SHA256SHA384SHA512SHA3-256SHA3-384SHA3-512
valuestring

Plain text input to hash. Required unless binary_file is true.

property_namestring

Output property name. Defaults to hash_result.

encodingstring

Output encoding format.

Values:
hexbase64
Default: hex
binary_fileboolean

Set to true to hash binary data from binary_value_base64 instead of text.

Default: false
binary_value_base64string

Base64-encoded binary data to hash. Required when binary_file is true.

binary_property_namestring

Metadata label for the binary input.

hmac5cr7 params(2 required)

Compute a keyed-hash message authentication code (HMAC) using a secret key.

Compute a keyed-hash message authentication code (HMAC) using a secret key.

hash_algorithmrequiredstring

Hash algorithm to use for HMAC.

Values:
MD5SHA256SHA384SHA512SHA3-256SHA3-384SHA3-512
secretrequiredstring

Secret key for HMAC computation.

valuestring

Plain text input. Required unless binary_file is true.

property_namestring

Output property name. Defaults to hmac_result.

encodingstring

Output encoding format.

Values:
hexbase64
Default: hex
binary_fileboolean

Set to true to use binary data from binary_value_base64.

Default: false
binary_value_base64string

Base64-encoded binary data. Required when binary_file is true.

sign5cr5 params(3 required)

Create a digital signature using RSA or ECDSA with a PEM-encoded private key.

Create a digital signature using RSA or ECDSA with a PEM-encoded private key.

valuerequiredstring

The text data to sign.

algorithmrequiredstring

Signing algorithm to use.

Values:
RS256RS512ES256ES384ES512
private_keyrequiredstring

PEM-encoded private key for signing.

property_namestring

Output property name. Defaults to signature.

encodingstring

Output encoding format.

Values:
hexbase64
Default: hex
encrypt5cr5 params(3 required)

Encrypt plaintext using AES-256-GCM authenticated encryption.

Encrypt plaintext using AES-256-GCM authenticated encryption.

valuerequiredstring

Plaintext to encrypt.

keyrequiredstring

32-byte AES encryption key, encoded as hex or base64.

ivrequiredstring

12-byte initialization vector/nonce, encoded as hex or base64.

encodingstring

Encoding for key, iv, and output ciphertext.

Values:
hexbase64
Default: hex
aadstring

Additional authenticated data (verified during decryption but not encrypted).

decrypt5cr5 params(3 required)

Decrypt AES-256-GCM ciphertext back to plaintext.

Decrypt AES-256-GCM ciphertext back to plaintext.

valuerequiredstring

Ciphertext to decrypt (hex or base64 encoded).

keyrequiredstring

32-byte AES encryption key (same encoding used during encryption).

ivrequiredstring

12-byte initialization vector/nonce (same value used during encryption).

encodingstring

Encoding for key, iv, and ciphertext.

Values:
hexbase64
Default: hex
aadstring

Additional authenticated data (must match what was used during encryption).

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 695c374f767df5adfd9bc871 ("Encrytion Decryption Toolkit"). Then call the same tool with action 'call_tool', tool_id 695c374f767df5adfd9bc871, and the parameters needed for my request.

Looking for help integrating AI into your business? Set up a free consultation.

Encrytion Decryption Toolkit by Apoth3osis | AgentPMT