SHA-256 creates a 256-bit digest, written as 64 hexadecimal characters. It is the standard choice for file integrity, content addressing and signatures. Hash text or a file, then compare the result with a published checksum to confirm a download is intact.
Common uses
- Verifying a downloaded file against its published SHA-256 checksum
- Producing a bcrypt hash to seed a test database
- Generating a throwaway key pair for signing experiments
Frequently asked questions
- How do I verify a download?
- Hash the file and compare the result with the checksum on the publisher site. They must match exactly.
- Is SHA-256 good for passwords?
- Not on its own, because it is fast to brute force. Use bcrypt, scrypt or Argon2 for passwords.