Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

crypto_bcrypt

Read-only

Hash a plaintext password using bcrypt with a configurable cost factor. Generates a fresh salt each call, returning the hash string, cost, salt, and strength analysis.

Instructions

Bcrypt Password Hasher. Hash a plaintext password with bcrypt at a chosen cost factor, generating a fresh random salt on every call. Use this to create a new stored password hash; use crypto_bcrypt_verify instead to check a password against an existing hash, and crypto_argon2 / crypto_scrypt / crypto_pbkdf2 for the other adaptive/memory-hard password KDFs. Runs locally with PHP password_hash on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (5 requests/minute for anonymous callers). Because a new salt is drawn each call, the same password yields a different hash each time. Returns the bcrypt hash string plus the cost, salt, parsed format breakdown, and a strength analysis of the chosen cost factor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordYesThe plaintext password to hash. Must be non-empty.
costNoBcrypt cost factor (log2 of the key-expansion rounds); higher is slower and more brute-force resistant. 12 is recommended for production. Values outside 4-15 are rejected with a 400.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordNoThe plaintext password that was hashed (echoed back from the request).
hashNoThe bcrypt hash in modular crypt format $2y$<cost>$<22charSalt><31charDigest>.
costNoThe cost factor used to generate the hash.
algorithmNoAlways "bcrypt".
saltNoThe 22-character base64 salt parsed from the generated hash.
durationNoTime taken to generate the hash, in seconds (rounded to 3 decimals).
infoNoFields parsed from the generated bcrypt hash.
formatNoStructural breakdown of the hash string.
securityNoStrength analysis of the chosen cost factor.
errorNoPresent only on a 4xx/5xx error response (e.g. missing password or cost out of range); absent on success.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, the description specifies local execution, read-only and non-destructive nature, no external service contact, rate limiting, and non-idempotent behavior due to fresh salt per call. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence provides distinct value: purpose, usage, behavior, return details. Front-loaded and no redundant or vague phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all necessary aspects: purpose, when to use, behavior, parameters with recommendations, and output summary (hash string, cost, salt, etc.). With output schema present, return values are adequately described.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with descriptions and examples, but the description adds context like recommended cost (12), valid range, and the effect of salt. This adds marginal value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool hashes a plaintext password with bcrypt for creating new stored password hashes, and differentiates it from sibling tools like crypto_bcrypt_verify and other KDFs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly provides when to use (create new hash) and when to use alternatives (crypto_bcrypt_verify for verification, other KDFs for different algorithms). Also mentions rate limiting for anonymous callers.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/Jambozx/onlinecybertools-mcp-server'

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