跳到主要内容
uencoder

Verify file 或数据完整性具有 checksum

计算 a CRC32 or SHA-256 checksum of data and compare it against a known value to detect corruption or tampering.

  1. 1

    checksum 是固定-大小 digest 的 arbitrary 数据. 如果数据 changes 通过 even one 位, checksum changes 完整. Comparing checksums detects accidental corruption (CRC32) 或 intentional tampering (SHA-256).

  2. 2
    CRC32 校验计算器 →

    为快, non-cryptographic 完整性 checks (file 传输, ZIP entries), 计算 CRC32. 它是 32-位 checksum — 快但 能够 miss 一些 corruptions 和 provides 否安全.

  3. 3
    哈希计算器 →

    为 cryptographic 完整性 (detecting deliberate tampering), 计算 SHA-256. 256-位 hash makes 它 infeasible 到查找不同输入具有相同 hash.

  4. 4
    哈希对比器 →

    Enter computed hash 和 expected hash. tool compares 它们在 常量时间和 reports 匹配/mismatch — useful 为 automating 验证 scripts.

常见问题

CRC32 vs SHA-256 — 哪个应该 I use?
Use CRC32 为 accidental corruption 检测在 non-adversarial contexts (file 传输, storage). Use SHA-256 (或 stronger) 当 adversary 可以 craft malicious 数据 — CRC32 是平凡到 forge. SHA-256 also 有 much 下 collision 概率.
能够 checksum 保证数据是 正确?
否. matching checksum 仅 means 否 detected 改变. 不同输入能够 share checksum (collision). CRC32 collisions 是常见开 大数据; SHA-256 collisions 是 computationally infeasible 但不 不可能. 为完整 assurance, use digital signatures.

解决此任务的工作流

相关工具