哈希生成器

实时生成 MD5、SHA-1、SHA-256 和 SHA-512 哈希值,输入即更新。

100% 本地运行 · 无需上传
跳转常见问题使用方法常见问题
MD5
SHA-1
SHA-256
SHA-512

常见问题

Q

How to generate an MD5 hash online?

A

This tool computes MD5, SHA-1, SHA-256, and SHA-512 hashes simultaneously, updating live as you type using the browser's built-in Web Crypto API.

Q

How to generate a SHA-256 hash?

A

Use SHA-256 or SHA-512 for new applications. MD5 and SHA-1 are cryptographically broken — avoid them for security purposes, though they're still useful for checksums.

Q

How to verify file integrity with a checksum?

A

Verifying file integrity by comparing checksums. Use SHA-256 or SHA-512 for new applications. MD5 and SHA-1 are cryptographically broken — avoid them for security purposes, though they're still useful for checksums. Hash functions are deterministic. This is the property that makes them useful for checksums and.

Q

What is the difference between MD5 and SHA-256?

A

Hash functions are deterministic. This is the property that makes them useful for checksums and content addressing.

Q

How to hash a string in the browser?

A

No. Hashing is one-way — you cannot reverse a hash back to the original input. Encryption is two-way with a key.

Q

How to generate all hash types at once?

A

Click Copy next to any hash to copy just that value, or Copy All to copy all four.

哈希生成器 是什么?

Cryptographic hash functions produce a fixed-length digest from any input. This tool computes MD5, SHA-1, SHA-256, and SHA-512 hashes simultaneously, updating live as you type using the browser's built-in Web Crypto API.

如何使用 哈希生成器

Type or paste your text in the input field. All four hash values update immediately. Click Copy next to any hash to copy just that value, or Copy All to copy all four.

示例

Input: Hello, World!

MD5:    65a8e27d8879283831b664bd8b7f0ad4
SHA-1:  0a0a9f2a6772942557ab5355d76af442f8f65e01
SHA-256:dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986d
SHA-512:374d794a95cdcfd8b35993185fef9ba368f160d8daf432d08ba9f1ed1e5abe6c...

应用场景

1. Verifying file integrity by comparing checksums.

2. Generating content-addressable identifiers for caching.

3. Creating test data with known hash values.

4. Understanding which hashing algorithm a system is using.

常见问题

Which algorithm should I use?

Use SHA-256 or SHA-512 for new applications. MD5 and SHA-1 are cryptographically broken — avoid them for security purposes, though they're still useful for checksums.

Is hashing the same as encryption?

No. Hashing is one-way — you cannot reverse a hash back to the original input. Encryption is two-way with a key.

Why does the same input always produce the same hash?

Hash functions are deterministic. This is the property that makes them useful for checksums and content addressing.

相关工具