Hashes, Checksums and Password Storage: Choose the Right Tool
Published · Updated · 6 min read
A hash is a fixed-length digest of input data. It can help compare data, but it does not encrypt the input and does not prove who created it. The right method depends on whether you are checking accidental changes, authenticating a source or storing passwords.
Use a checksum to compare the same bytes
If a publisher provides a SHA-256 checksum for a download, calculate SHA-256 over the downloaded file bytes and compare the result. A match is useful evidence that the bytes agree with the published value, assuming the checksum itself came from a trusted channel. A plain hash alone does not authenticate the publisher: an attacker who can replace both the file and checksum can replace both values.
The Boltlyze hash generator accepts text, not a file. It encodes the exact text string as UTF-8 before hashing. For example, SHA-256 of the three-character string abc is:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Adding a newline, changing spaces or using a different Unicode normalization changes the input bytes and therefore the digest. Pasting text copied from a file is not a substitute for hashing the file's raw bytes.
A digest is not encryption or a signature
Hashing is designed to produce a digest, not a reversible ciphertext. There is no direct inverse that recovers the original text from the digest; however, an attacker can guess candidate inputs and compare their hashes, especially when the input is predictable. A cryptographic hash also does not create a digital signature: signatures use a private key to authenticate a message or digest, and verification uses the corresponding public key.
SHA-1 remains available in some legacy systems, but known collision attacks make it unsuitable where collision resistance is required. Use the algorithm specified by the system you are interoperating with; SHA-256 is common for modern checksums and integrity comparisons. A hash result is not, by itself, proof that data is safe or trustworthy.
Passwords need a deliberately slow password-hashing function
Do not store passwords as plain SHA-256 or SHA-512 hashes. These algorithms are designed to run quickly, which also lets an attacker test many guesses quickly after a database leak. Password storage should use a dedicated password-hashing function such as Argon2id, scrypt, bcrypt or PBKDF2, with a unique salt and parameters appropriate to the application. Use a maintained library and follow its current security guidance.
A browser text hash tool is not a password manager, key vault or server-side credential store. Do not paste live secrets into a tool unless you have assessed the page, the device and the data flows for your use case.
Reproduce and verify a result
- Identify the algorithm required by the source or protocol. The tool displays SHA-1, SHA-256 and SHA-512 together; compare the corresponding result.
- Confirm whether the input is raw file bytes or text encoded as UTF-8.
- Check whether a final newline, whitespace or Unicode normalization is included.
- Compare the digest with a trusted known value. For a quick text check, enter
abcinto the hash generator and compare SHA-256 with the example above. - Use a signature or authenticated channel when you need source authenticity, and a password-hashing function when storing passwords.
Boltlyze calculates this text digest in your browser and does not send the text or digest to its AI gateway. A limited usage event reports the tool ID, timing and success status. See the Privacy Policy for separate analytics and advertising data flows.
Further reading
- OWASP Password Storage Cheat Sheet for current password-hashing guidance.
- NIST: Research Results on SHA-1 Collisions for collision-resistance context.
Tools used in this guide
Hash Generator
Compute SHA-256, SHA-512 and SHA-1 digests from UTF-8 text in your browser. Includes a known SHA-256 example and guidance on checksums, collisions and password storage.
Base64 Encoder / Decoder
Free Base64 encoder and decoder: convert text to Base64 and back, full UTF-8 support for any language. Instant, no sign-up, runs entirely in your browser.
More guides
- Unix Timestamps: Seconds, Milliseconds and Time Zones
- Format JSON Safely: Syntax, Duplicate Keys and Large Numbers
- How This Word Counter Counts Words, Paragraphs and Reading Time
- Character Counts, Emoji and UTF-8 Bytes: Which Number Does Your App Use?
- How to Paraphrase Academic Text Without Losing Citations
- How to Edit AI-Generated Writing for Clarity
- PDF to Markdown: A Complete Workflow for Researchers and Note-Takers
- Writing YouTube Titles: Clear Promises and Useful Comparisons
- Better Prompts, Better Output: How to Feed AI Writing Tools