雜湊計算器
使用 Web Crypto API 計算文字或檔案的 SHA-1、SHA-256、SHA-384 和 SHA-512 雜湊。資料絕不離開你的裝置。
MD5 is not offered: the Web Crypto API does not provide it, and MD5 is collision-broken and unsafe for security use.
使用方法
Type text or pick a file, then press Compute hashes. Digests for SHA-1, SHA-256, SHA-384 and SHA-512 are shown in hexadecimal, each with its own copy button. When a file is selected it takes precedence over the text box; editing the text switches back to text input.
注意事項
Hashing uses the browser's Web Crypto API; your input never leaves the device. MD5 is not offered: Web Crypto does not provide it, and MD5 is collision-broken. SHA-1 is shown for compatibility, but collisions have been demonstrated for it too — use SHA-256 or stronger for new security-sensitive work.
常見問題
Can I use this to store passwords?
Not directly. Password storage needs a dedicated password hashing function such as bcrypt or Argon2 with a salt. This tool computes general-purpose digests.
Which encoding is used for text?
UTF-8. If another tool gives a different digest, an encoding difference is the usual cause.