# Quantum Secure Token Generator

## Links

- Product page URL: https://www.agentpmt.com/marketplace/quantum-secure-token-generator
- Product markdown URL: https://www.agentpmt.com/marketplace/quantum-secure-token-generator?format=agent-md
- Product JSON URL: https://www.agentpmt.com/marketplace/quantum-secure-token-generator?format=agent-json

## Overview

- Product ID: 68b648913c0101597b3cd87d
- Vendor: Apoth3osis
- Type: function
- Unit type: request
- Price: 500 credits
- Categories: Quantum Randomness & Entropy, Security & Cryptography, Gaming & Fairness, Scientific Computing
- Generated at: 2026-05-30T20:22:34.155Z

### Page Description

For generating cryptographically secure, random string tokens for authentication and authorization purposes. The tool uses a hardware-based quantum entropy source to ensure true, unpredictable randomness for each character. It allows for customization of the token's length and the selection of a predefined character set, making it ideal for creating highly secure API keys, session tokens, and password reset links.

### Agent Description

Generate secure random string tokens for API keys, session tokens, and password reset links using quantum entropy.

## Details

### Details

For generating cryptographically secure, random string tokens for authentication and authorization purposes. The tool uses a hardware-based quantum entropy source to ensure true, unpredictable randomness for each character. It allows for customization of the token's length and the selection of a predefined character set, making it ideal for creating highly secure API keys, session tokens, and password reset links.

### Actions

- `generate` (5 credits): Generate a secure random token with configurable length and character set using quantum or standard randomness. Suitable for API keys, session tokens, and password reset links.

### Use Cases

API Key Generation, Session Tokens, Password Reset Tokens, Authentication Mechanisms, Coupon Codes, Two-Factor Authentication (2FA) Codes, Secure URL Generation, Cryptographic Nonces

### Workflows Using This Tool

No public workflows currently reference this product.

### Related Content

No related content is currently linked to this product.

## Integration Details

### DynamicMCP

- Setup page URL: https://www.agentpmt.com/dynamic-mcp
- Claude setup guide: https://www.agentpmt.com/dynamic-mcp?platform=claude#videos
- ChatGPT setup guide: https://www.agentpmt.com/dynamic-mcp?platform=chatgpt#videos
- Cursor setup guide: https://www.agentpmt.com/dynamic-mcp?platform=cursor#videos
- Windsurf setup guide: https://www.agentpmt.com/dynamic-mcp?platform=windsurf#videos

Use the local router for command-based MCP clients. It forwards requests to `https://api.agentpmt.com/mcp` and does not execute tools locally.

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

### REST API

The live page renders cURL, Python, JavaScript, and Node.js examples. Logged-in users see those examples prefilled with their own API and budget credentials.

- Purchase endpoint: https://api.agentpmt.com/products/purchase
- Authorization format: `Bearer <base64(apiKey:budgetKey)>`

```bash
curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eW91ci1hcGkta2V5LWhlcmU6eW91ci1idWRnZXQta2V5LWhlcmU=" \
  -d '{
    "product_id": "68b648913c0101597b3cd87d",
    "parameters": {
      "action": "generate",
      "length": 32,
      "charset": "alphanumeric",
      "source": "quantum"
    }
  }'
```

### Autonomous Agents

Autonomous agents can access this tool through AgentAddress credit balances or direct x402 payments. Use the Autonomous Agent API reference for endpoint shapes after choosing the access pattern below.

- Autonomous Agent API reference URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents
- Autonomous Agent API reference markdown URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents?format=agent-md
- Credit-Based Access Using AgentAddress: https://www.agentpmt.com/docs/autonomous-agents/credit-based-tool-usage-with-agentaddress
- AgentAddress is preferred for persistent file access, stored platform state, and maximum tool use ability across repeated calls.
- Direct x402 is for independent one-off tool calls that do not require shared files or stored platform state.
- Direct x402 public payments: USDC on Base, Arbitrum, Optimism, Polygon, and Avalanche.

### Schema

#### Parameters

- Schema type: actions

```json
{
  "actions": {
    "generate": {
      "description": "Generate a secure random token with configurable length and character set using quantum or standard randomness. Suitable for API keys, session tokens, and password reset links.",
      "properties": {
        "length": {
          "type": "integer",
          "description": "Token length in characters (8-256).",
          "required": false,
          "default": 32,
          "minimum": 8,
          "maximum": 256
        },
        "charset": {
          "type": "string",
          "description": "Character set: 'alphanumeric' (letters+digits), 'hex' (0-9,a-f), 'base64' (URL-safe), 'ascii' (printable excluding whitespace).",
          "required": false,
          "default": "alphanumeric",
          "enum": [
            "alphanumeric",
            "hex",
            "base64",
            "ascii"
          ]
        },
        "source": {
          "type": "string",
          "description": "Random source: 'quantum' (CURBy quantum RNG) or 'standard' (Python secrets module).",
          "required": false,
          "default": "quantum",
          "enum": [
            "quantum",
            "standard"
          ]
        }
      }
    }
  },
  "properties": {}
}
```

### Usage Instructions

# Quantum Secure Token Generator

## Overview
Generate cryptographically secure tokens using either quantum-derived true randomness (from the CURBy quantum random number generator at University of Colorado Boulder) or standard cryptographic randomness. Supports multiple character sets and configurable token lengths.

## Actions

### generate
Generate a secure random token.

**Required Fields:** None (all fields have defaults)

**Optional Fields:**
- `length` (integer, default: 32) — Token length in characters. Range: 8–256.
- `charset` (string, default: "alphanumeric") — Character set for the token. Options:
  - `"alphanumeric"` — Letters (a-z, A-Z) and digits (0-9)
  - `"hex"` — Hexadecimal characters (0-9, a-f)
  - `"base64"` — URL-safe Base64 characters
  - `"ascii"` — All printable ASCII characters excluding whitespace
- `source` (string, default: "quantum") — Randomness source. Options:
  - `"quantum"` — True randomness from quantum measurements
  - `"standard"` — Cryptographically secure pseudo-random generation

**Example — Generate a default token:**
```json
{
  "action": "generate"
}
```

**Example — Generate a 64-character hex token using quantum randomness:**
```json
{
  "action": "generate",
  "length": 64,
  "charset": "hex",
  "source": "quantum"
}
```

**Example — Generate a short Base64 API key:**
```json
{
  "action": "generate",
  "length": 48,
  "charset": "base64"
}
```

**Example — Generate a strong ASCII password:**
```json
{
  "action": "generate",
  "length": 24,
  "charset": "ascii",
  "source": "quantum"
}
```

**Response includes:**
- `token` — The generated token string
- `length` — Actual length of the generated token
- `charset` — Character set used
- `source` — Randomness source used ("quantum" or "standard")

## Common Workflows

1. **Generate an API key** — Use `charset: "base64"` with `length: 48` or higher for URL-safe API keys.
2. **Generate a session token** — Use default settings (`charset: "alphanumeric"`, `length: 32`) for session identifiers.
3. **Generate a hex token for cryptographic use** — Use `charset: "hex"` with `length: 64` for 256-bit equivalent tokens.
4. **Generate a strong password** — Use `charset: "ascii"` for maximum character diversity.

## Important Notes
- The quantum source provides true randomness derived from quantum measurements. If the quantum source is temporarily unavailable, consider using `"standard"` as a fallback.
- The standard source uses cryptographically secure generation suitable for production security applications.
- Token length must be between 8 and 256 characters.
- All generated tokens are returned as strings and are not stored — save them immediately after generation.

### Frequently Asked Questions

#### How do I connect this tool to an external agent?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

You can install the local MCP server by opening a terminal and running:

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

This will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.

Alternatively you can connect to the hosted version with this config block, no installation required:

```
{
  "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\"}"
      }
    }
  }
}
```

[View MCP Connection Instructions](/docs/mcp-reference/connection) for more details.

#### How does an external agent use this tool?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:

> Call the AgentPMT-Tool-Search-and-Execution tool with action 'get\_schema' and tool\_id 68b648913c0101597b3cd87d ("Quantum Secure Token Generator"). Then call the same tool with action 'call\_tool', tool\_id 68b648913c0101597b3cd87d, and the parameters needed for my request.

The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.

### Dependencies

This product has no public dependency products.