sha224
Calculate the SHA-224 hash of any input string using the Crypto_MCP server. Provides a cryptographic hash output for data integrity verification.
Instructions
Calculate SHA-224 hash of a string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The input string to hash |
Implementation Reference
- src/service/digest.ts:56-64 (handler)The sha224 static method on DigestUtil that computes SHA-224 hash using CryptoJS.SHA224
/** * Calculate SHA-224 hash of a string * @param input The input string to hash * @returns 56-character hexadecimal SHA-224 hash */ static sha224(input: string): string { const hash = CryptoJS.SHA224(input); return hash.toString(); } - src/service/digest.ts:148-150 (schema)Zod schema for the sha224 tool input - a single string parameter named 'input'
"Calculate SHA-224 hash of a string", { input: z.string().describe("The input string to hash"), - src/service/digest.ts:145-158 (registration)Registration of the 'sha224' tool on the McpServer via server.tool()
// Register SHA-224 tool server.tool( "sha224", "Calculate SHA-224 hash of a string", { input: z.string().describe("The input string to hash"), }, ({ input }) => { const hash = DigestUtil.sha224(input); return { content: [{ type: "text", text: hash }], }; } );