Skip to main content
Glama

sha384

Generate SHA-384 hash for any input string to ensure cryptographic integrity using the Crypto_MCP server.

Instructions

Calculate SHA-384 hash of a string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe input string to hash

Implementation Reference

  • The handler function for the sha384 MCP tool, which calls DigestUtil.sha384 on the input and returns the hash as text content.
    ({ input }) => { const hash = DigestUtil.sha384(input); return { content: [{ type: "text", text: hash }], }; }
  • Zod input schema for the sha384 tool, defining a single string parameter.
    { input: z.string().describe("The input string to hash"), },
  • MCP server registration of the sha384 tool, including name, description, schema, and handler.
    server.tool( "sha384", "Calculate SHA-384 hash of a string", { input: z.string().describe("The input string to hash"), }, ({ input }) => { const hash = DigestUtil.sha384(input); return { content: [{ type: "text", text: hash }], }; } );
  • DigestUtil static method implementing SHA-384 hashing using CryptoJS library.
    static sha384(input: string): string { const hash = CryptoJS.SHA384(input); return hash.toString(); }

Other Tools

Related Tools

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/1595901624/crypto-mcp'

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