Monu Tools

Bcryptハッシュ生成・照合

ブラウザ内でパスワードをbcryptでハッシュ化するか、bcryptハッシュに対してパスワードを照合します。

Bcryptの使い方

  1. 01

    「ハッシュ生成」でハッシュを作成するか、「照合」でハッシュを確認するかを選択します。

  2. 02

    パスワードを入力し、照合時はハッシュも入力します。

  3. 03

    bcryptハッシュまたは照合結果を確認します。

Hash and verify passwords

A bcrypt tool that hashes a password at a cost you choose, and verifies a password against an existing bcrypt hash. Everything runs locally in your browser, so passwords stay on your device.

Why bcrypt for passwords

Bcrypt is an adaptive password-hashing function designed specifically for storing passwords. Unlike a fast hash such as SHA-256, it is deliberately slow and includes a built-in salt, which is exactly what you want when defending stored passwords.

The cost factor

The cost factor (the rounds) sets how much work each hash takes. Every extra round doubles the computation, so raising the cost makes large-scale brute-force and GPU attacks far slower, while a single login stays fast enough. A value of 10 to 12 is a common choice.

Salt and verification

Bcrypt mixes a random salt into every hash, so the same password produces a different hash each time. That defeats precomputed rainbow tables, and verification still works because the salt is stored inside the hash itself.

To check a password, the verify mode reads the salt and cost out of the stored hash, hashes the candidate the same way, and compares, which is why you only need the hash and the password, not the original salt.

Security note

Hashing and verifying run entirely in your browser, so nothing is uploaded. Even so, avoid pasting real production passwords on a shared computer.

よくある質問

ラウンド数とは何ですか?

コストファクターです。1ラウンド増えるごとにハッシュの計算に必要な処理量が2倍になり、ブルートフォース攻撃が遅くなります。10〜12が一般的な選択です。

同じパスワードでもハッシュが毎回異なるのはなぜですか?

bcryptはすべてのハッシュにランダムなソルトを含むため、同じパスワードでも出力が異なります。ソルトはハッシュ内に保存されているため、照合は正しく機能します。

安全に使えますか?

ハッシュ化はブラウザ内で完結するため、パスワードはアップロードされません。ただし、共有コンピューターでは本番環境の実際のパスワードを貼り付けないでください。

出典

このツールを埋め込む

このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。

<iframe src="https://monu.tools/embed/ja/bcrypt-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

関連ツール