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
ハッシュジェネレーター — 全アルゴリズム対応
MD4、MD5、SHA-1、SHA-224、SHA-256、SHA-384、SHA-512、SHA3、Keccak-256、CRC-32、NTLMのハッシュ値をテキストやファイルからブラウザ上で直接計算します。
ツールを開くSHA-256ハッシュジェネレーター
Web Crypto APIを使ってブラウザ上でテキストやファイルのSHA-256ハッシュ値を計算します。結果はHexまたはBase64形式で出力できます。
ツールを開くMD5ハッシュジェネレーター
テキストやファイル(最大50MB)のMD5ハッシュ(ダイジェスト)をブラウザ内で計算します。結果はHexまたはBase64形式で出力できます。
ツールを開くSHA-1ハッシュジェネレーター
Web Crypto APIを使ってブラウザ上でテキストやファイルのSHA-1ハッシュ(ダイジェスト)を計算します。GitのコミットIDや古いシステムとの互換用途に便利です。
ツールを開くよくある質問
SHA-1は今でも安全ですか?
いいえ。SHA-1にはすでに実証済みの衝突(コリジョン)攻撃が存在します(2017年のSHAttered攻撃)。デジタル署名や改ざん検知など、セキュリティが重要な用途にSHA-1を使うのは避けてください。代わりにSHA-256を使用しましょう。
なぜ今でもSHA-1が使われているのですか?
後方互換性のためです。GitはオブジェクトIDにSHA-1を使用しており(衝突検知パッチ付き)、一部の古いTLSシステムや、従来から使われてきたファイルチェックサムでも利用され続けています。
このツールはオフラインでも使えますか?
はい。ページの読み込みが完了した後は、ハッシュ計算はすべてお使いのブラウザ内だけで行われます。