Skip to main content
Glama
fmangot
by fmangot
crypto.ts499 B
/** * Cryptographic utilities */ import { randomBytes } from 'crypto'; /** * Generate a cryptographically secure session ID * @returns A random 256-bit hex string */ export function generateSecureSessionId(): string { return randomBytes(32).toString('hex'); } /** * Generate a secure random token * @param bytes Number of random bytes to generate * @returns Hex string */ export function generateSecureToken(bytes: number = 32): string { return randomBytes(bytes).toString('hex'); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fmangot/Mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server