Skip to main content
Glama
paladini

devutils-mcp-server

hash_bcrypt_verify

Verify if a plain text string matches a bcrypt hash for secure password validation. Returns true on successful match.

Instructions

Verify a string against a bcrypt hash. Returns true if matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe plain text string
hashYesThe bcrypt hash to verify against

Implementation Reference

  • The tool 'hash_bcrypt_verify' is registered and implemented within 'src/tools/hash.ts'. It uses 'bcrypt.compare' to verify the input against a hash.
    server.tool(
      "hash_bcrypt_verify",
      "Verify a string against a bcrypt hash. Returns true if matches.",
      {
        input: z.string().describe("The plain text string"),
        hash: z.string().describe("The bcrypt hash to verify against"),
      },
      async ({ input, hash }) => {
        const isMatch = await bcrypt.compare(input, hash);
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify({ match: isMatch }),
            },
          ],
        };
      }
    );

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/paladini/devutils-mcp-server'

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