Using Hash Generator: practical guide
What a hash is for
A hash turns any input into a fixed-length fingerprint. The same input always produces the same hash, and changing a single character changes the hash completely. That makes hashes useful for checking that a file or text was not altered.
Verify a download
Publishers often list a SHA-256 checksum next to a download. Hash your file and compare the result to the published value character for character. If they differ, the file is corrupted or has been changed, and you should download it again from the official source.
Choose the right algorithm
Use SHA-256 or stronger for integrity checks. MD5 and SHA-1 are broken for security purposes because collisions can be created, so use them only for non-security tasks such as spotting accidental duplicates.
- A hash is not encryption: it cannot be reversed to get the original text.
- Do not store passwords with a plain SHA hash; use a password-hashing function such as bcrypt or Argon2 on the server.
- A trailing space or line break changes the hash, so match the input exactly.