A fingerprint you can verify
Hashing maps data of any length to a fixed-length string, identical for identical content and completely different after one changed byte. Fields display SHA-256 and SHA-1, the input sample is the classic test string, and controls switch file or text mode, compute, load a sample, clear and copy each digest. File mode hashes the whole file while text mode hashes the input, the latter useful for verifying the implementation.
Steps
- Start with the sample and confirm the digest matches the known value.
- Switch to file mode and load the target for verification.
- Compute and wait for large files to finish.
- Copy SHA-256 and SHA-1 separately into the delivery list.
- Use text mode for pasted content checks.
- Compare character by character, since hashes have no near matches.
SHA-256 versus SHA-1
SHA-256 emits sixty-four hex characters and SHA-1 forty. Neither signs anything; both compare integrity, so a matching digest from the publisher proves the transfer was unaltered. SHA-1 has proven collision attacks that construct two different files with the same digest, so security uses SHA-256. Large files must stream in chunks or memory is exhausted, which the tool handles. The test string yields a fixed known digest that reveals whether the implementation is correct. Chinese filenames never affect content hashes, which read bytes only.
Common mistakes
Using SHA-1 for security and underestimating collisions. Comparing prefixes and calling it a match. Treating hashing as encryption, which it is not. Verifying with an old digest after edits. Crashing the browser on unbounded files. And failing comparisons over case or whitespace.
Where a digest is not identity
Publisher identity needs signatures. Content duplication needs the duplicate finder, which hashes internally. Confidentiality needs encryption. And any digest still depends on a trusted distribution channel.