hash_sha512
Generate SHA-512 cryptographic hashes from text input to verify data integrity and create secure digital fingerprints for verification purposes.
Instructions
Generate a SHA-512 hash of the given input string.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The string to hash |
Implementation Reference
- src/tools/hash.ts:52-65 (handler)The implementation of the 'hash_sha512' MCP tool, which generates a SHA-512 hash using Node's crypto library.
// SHA-512 hash server.tool( "hash_sha512", "Generate a SHA-512 hash of the given input string.", { input: z.string().describe("The string to hash") }, async ({ input }) => ({ content: [ { type: "text" as const, text: createHash("sha512").update(input).digest("hex"), }, ], }) );