By YiyaoPublished
Use MD5 only when an existing reference requires it
If a legacy system gives you an MD5 checksum for a file or exact text, compute the digest from the same inputs and compare the values. MD5 is not appropriate for authentication or for protecting against an intentional replacement. Ask for a modern trusted verification method when security matters.
Choose input mode by what you're comparing
Text mode hashes the UTF-8 bytes of the text you enter. File mode hashes the selected file bytes without converting line endings. A newline at the end of a file can change the digest even when the words look identical.
Check a known test value
Enter abc without a newline in Text mode. The expected MD5 is 900150983cd24fb0d6963f7d28e17f72. Adding a line break gives a different result. Use the fixed example to check the mode, then clear it before picking the next file.
Handle a digest that doesn't match
Confirm the algorithm and that both sides refer to the same version, encoding and input mode. If a legacy spreadsheet pasted an incomplete checksum, obtain the original reference. Don't treat a mismatch as proof of tampering; a difference can also come from a different release, text encoding or file contents.
Questions about the comparison
Does an MD5 match prove a download is authentic? No. Use the publisher's trusted signature or modern verification instructions.
Can I recover a text input from its digest here? No. This page computes and compares checksums for known inputs.
Request a modern verification value when possible
If you control the workflow, ask the maintainer to publish a SHA-256 digest or a signed release from a trustworthy location. Keep the legacy comparison scoped to the workflow that requires it.
If the publisher provides a SHA-256 reference, calculate a SHA-256 digest for the same bytes.
