sha384
Convert any input string into a SHA-384 hash to produce a fixed-size, cryptographically secure digest for data integrity verification.
Instructions
Calculate SHA-384 hash of a string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The input string to hash |
Implementation Reference
- src/service/digest.ts:41-44 (handler)Static method that computes SHA-384 hash using CryptoJS.SHA384 and returns the hex string.
static sha384(input: string): string { const hash = CryptoJS.SHA384(input); return hash.toString(); } - src/service/digest.ts:116-128 (registration)Registers the 'sha384' tool on the MCP server with a Zod schema for input validation.
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 }], }; } ); - src/service/digest.ts:119-121 (schema)Zod schema defining the single required input parameter (a string) for the sha384 tool.
{ input: z.string().describe("The input string to hash"), },