Hash a password with bcrypt or check whether a password matches an existing hash. Hashing runs in your browser using the bcrypt.js library loaded on demand; the password never leaves the page.

The cost factor sets the work as 2^cost rounds. Each step up doubles the time. 10–12 is typical for web logins today; anything at 13 or above can take several seconds in a browser, and I would not use less than 10 in production. The generated hash is broken down into version, cost, salt and hash so you can see what is stored.

Verification accepts $2a$, $2b$ and $2y$ hashes, so hashes from PHP, Node, Python and Ruby all work. Remember that bcrypt only uses the first 72 bytes of the password; longer inputs are silently truncated, which the tool warns about.

This is a development and debugging aid, for example to seed a test user or check a hash from a database dump. Production hashing belongs on the server.