PassGen.co

Language

All tools
All tools
All tools

Hash Generator and File Checksum

Text or files

The exact bytes that were hashed are counted here.

MD5128old
SHA-1160old
SHA-256256
SHA-384384
SHA-512512

MD5 and SHA-1 are old: fine for spotting a damaged download, not for security. A matching checksum shows the file is the one the publisher listed, not that the file is safe.

Hashed on this device. Nothing you type or drop here is sent anywhere.

Password generator

Hashes and Checksums, Made on Your Device

A hash generator for text and files. Type or paste text, or drop files, even large ones, and you get the MD5, SHA-1, SHA-256, SHA-384, and SHA-512 at once. Paste a published checksum into Compare to check a download, and use the Password hashing tab for bcrypt hashes and .htpasswd lines.

Everything is hashed in this page, on your device: your text and files are never uploaded. The page address keeps only your settings, never your text.

Jump to: Check a download · What a match proves · Why hashes differ · Which algorithm · bcrypt and .htpasswd · Questions

Check a Download with Its Checksum

Many download pages list a checksum beside the file: a long string of letters and digits, usually labeled SHA-256, sometimes MD5 or SHA-1. If your copy gives the same checksum, it arrived complete and unchanged.

  1. Drop the file on the box, or press Open files. Big files show their progress, and you can stop them.
  2. Paste the checksum from the download page into Compare: the hash on its own, a line as sha256sum prints it, or a whole SHA256SUMS list.
  3. Read the answer: Match, or No match with the first different character marked.

You don’t need to say which algorithm the checksum uses: the page tells them apart by length. With a list, each file is matched to its own line by name, so you can check several files at once. Capitals, spaces between pairs, and colons are all fine.

What a Matching Checksum Proves

A match proves your file is the same as the one the publisher listed. It doesn’t prove the publisher, or the file, can be trusted. A checksum catches a download that broke on the way, a file swapped on a mirror, or the wrong version.

If someone took over the download page itself, they could change the file and the checksum together. So take the checksum from the publisher’s own site, not from the mirror that served the file. Where a project signs its checksum list, with GPG for example, checking that signature is the stronger test.

A checksum also says nothing about what a program does once you run it. And MD5 and SHA-1 only catch accidents: two different files with the same MD5 or SHA-1 can be made on purpose. When tampering is the worry, use SHA-256 or longer.

Why Is My Hash Different?

Change one byte and the whole hash changes. Text hides bytes, so two texts that look the same on screen can give different hashes. The usual causes:

  • A line break at the end. echo hello | sha256sum hashes hello plus a line break: tick Line break at the end to match it.
  • Windows line breaks, two bytes each instead of one. Tick Windows line breaks to hash them that way.
  • A space at the end, or a non-breaking space copied from a web page.
  • An invisible byte order mark at the start, or an accented letter stored a different way.

The line under the box says exactly what was hashed: how many characters, how many bytes, whether there’s a line break at the end, and anything hidden. Text is hashed as UTF-8, the encoding nearly every system uses.

MD5, SHA-1, SHA-256, or SHA-512?

Each algorithm gives a hash of a fixed length, however big the input. Use the one the publisher used; for anything new, choose SHA-256.

AlgorithmHex charactersWhere you’ll see it
MD532Older download pages. Old: catches damage only
SHA-140Older checksum lists. Old: catches damage only
SHA-25664Most checksums published today
SHA-38496Script and style checks in web pages (sha384-)
SHA-512128Some Linux downloads and backup tools

Written as switches between lowercase hex, capitals, and Base64; the hash is the same. HMAC mixes in a secret key, the way many services sign webhooks and API requests, so only someone with the key can make the same value. You can make a strong key on Keys and IDs.

Password Hashing Is Different: bcrypt and .htpasswd

Checksums are built to be fast. That’s wrong for passwords: if a database leaks, a fast hash lets an attacker try billions of guesses a second. bcrypt is slow on purpose, and it mixes in a random salt, so the same password gives a different hash every time.

On the Password hashing tab:

  • bcrypt makes a hash for a database or a config file. Cost 12 is the default; each step up doubles the time, and the page says how long it took.
  • Prefix: $2y$ for PHP and Apache, $2b$ for most other systems, $2a$ for older libraries. Pick the one your system expects.
  • .htpasswd line makes a user:hash line to password-protect a folder on Apache or Nginx, with the lines to add to the server’s settings. APR1-MD5 is there for old servers that can’t read bcrypt.
  • Check a password against a hash says whether a password matches a bcrypt, APR1, or {SHA} hash, or a whole .htpasswd line.

bcrypt only uses the first 72 bytes of a password, and the page warns you when yours is longer. Use a test password here, or make the hash on your own server. To make a new password, press Make one or use the password generator.

Frequently Asked Questions

What is a checksum?

A short value worked out from every byte of a file. The same file always gives the same checksum, and any change gives a different one, so comparing checksums is a quick way to see that two copies are identical. SHA-256 is the usual choice; MD5 and SHA-1 are older.

How do I check a SHA-256 checksum on my computer?

Every system has a command for it. Windows: certutil -hashfile file.iso SHA256 in Command Prompt, or Get-FileHash file.iso in PowerShell. macOS: shasum -a 256 file.iso. Linux: sha256sum file.iso, or sha256sum -c SHA256SUMS to check a whole list. Then compare the result with the published one, or drop the file here and paste the published checksum into Compare.

Can a hash be reversed?

No. A hash can’t be turned back into the text it came from. But short or common inputs can be found by guessing: attackers hash huge lists of likely passwords and look for the same value. That’s why passwords need a slow hash such as bcrypt, and why a long, random password matters. The password strength checker shows how long yours would hold out.

Is MD5 still safe to use?

For spotting a damaged or incomplete download, yes: an accident won’t produce a matching MD5. For security, no. Different files with the same MD5 can be made on purpose, and MD5 is far too fast for passwords. The same goes for SHA-1, which is why the tool marks both as old.

Is hashing the same as encryption?

No. Encryption can be undone with the right key; a hash can’t be undone at all. Encoding, such as Base64, is neither: anyone can turn it back. The Base64 and JWT decoder shows what encoded text really says.

Are my files uploaded?

No. Files are read and hashed in this page, piece by piece, so even large ones work without being uploaded. A big file takes a while, and its progress shows.

What bcrypt cost should I use?

Start at 12, the default here. Each step up doubles the time a hash takes, for your server and for anyone guessing. Choose the highest cost your server can handle at sign-in without making people wait, and don’t go below 10.