メインコンテンツへスキップ
Z

What is Hash function?

A hash function maps input data of any size to a fixed-size string of bytes (the hash or digest). The same input always produces the same output, small input changes produce very different outputs, and the process is one-way — you cannot reverse a hash back to its input.

Good cryptographic hashes are deterministic, one-way, and collision-resistant (it is infeasible to find two inputs with the same hash). Examples include MD5 and SHA-1 (now broken for security) and SHA-256 (the modern standard).

Hashes are used for file-integrity checks, digital signatures, deduplication and — with a salt and a slow KDF like bcrypt or argon2 — password storage.

Hash function tools

よくある質問

SHA-1は今でも安全ですか?

いいえ。SHA-1にはすでに実証済みの衝突(コリジョン)攻撃が存在します(2017年のSHAttered攻撃)。デジタル署名や改ざん検知など、セキュリティが重要な用途にSHA-1を使うのは避けてください。代わりにSHA-256を使用しましょう。

なぜ今でもSHA-1が使われているのですか?

後方互換性のためです。GitはオブジェクトIDにSHA-1を使用しており(衝突検知パッチ付き)、一部の古いTLSシステムや、従来から使われてきたファイルチェックサムでも利用され続けています。

このツールはオフラインでも使えますか?

はい。ページの読み込みが完了した後は、ハッシュ計算はすべてお使いのブラウザ内だけで行われます。