# Hash generator

Type text or open a file to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once. Paste a published checksum to check a download. Nothing is uploaded.

Page: https://toolkitnow.org/tools/hash-generator/

Type text or open a file: every hash appears at once. Paste a checksum below to check it. The gray text is an example.

## Good to know

### Which one

Use SHA-256 to check downloads; it is what most sites publish. MD5 and SHA-1 still spot accidental changes, but they are broken for security: two different files can be made to share a hash.

### Text or file

Text is hashed as UTF-8, exactly as typed. A line break at the end changes the hash, which is why `echo hello | sha256sum` differs from this page: use `printf hello`. To hash a file's exact bytes (line endings included), open the file.

### Checking

Paste the checksum from the download page. Capital letters, spaces, colons and a leading `0x` are ignored; the matching row is marked.

### Passwords

Do not store passwords as plain hashes. Use a password hash made to be slow, such as Argon2, bcrypt or scrypt.

### In a terminal

Linux `sha256sum file`, macOS `shasum -a 256 file`, Windows `certutil -hashfile file SHA256` or PowerShell `Get-FileHash file`. Files over 500 MB are best hashed there.

### Open from a link

`?text=hello` opens the page with the hashes of that text; add `&expected=…` to check one.

Runs in the browser; nothing is uploaded. Part of toolkitnow.org.
