Hash Generator
Type text or choose a file to compute SHA hashes instantly.
Ce contenu est en anglais.
Exemples détaillés
Hashing a short phrase
hello
SHA-1 aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 SHA-384 59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f SHA-512 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
The same input always gives the same hash, and changing one letter changes the whole output.
Hashing empty text
Nothing typed in the box
SHA-1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 SHA-384 38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b SHA-512 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
An empty input still has a hash, so a checksum for an empty file can be compared directly.
À propos de Hash Generator
A hash function takes an input of any length and produces a fixed-length string of characters, called a digest. The same input always yields the same digest, but even a small change to the input produces a completely different result. Hashes are used to check file integrity, compare values without showing them and index data efficiently.
This generator creates SHA-1, SHA-256, SHA-384 and SHA-512 digests from typed text or from a file you select. Use it to compare a downloaded file against a published checksum, or to produce a fingerprint for a test case. A hash cannot be reversed to recover the original input, although short or predictable inputs can be confirmed by hashing candidate values.
Comment utiliser Hash Generator
- Choose text or file as the input type.
- Paste your text, or select the file you want to hash.
- Pick SHA-1, SHA-256, SHA-384 or SHA-512 from the algorithm list.
- Copy the digest and compare it with the published checksum.
Usages courants
- Verifying that a downloaded installer matches the checksum on the publisher's page.
- Creating a fingerprint to detect whether a configuration file has changed.
- Generating a stable identifier for cache keys or deduplication.
- Producing test vectors for a program that implements a hashing algorithm.
Questions fréquentes
Can a hash be reversed to get the original text?
No. A hash function is designed to be one-way, so the digest cannot be mathematically inverted to recover the input. Short, common or predictable inputs can still be identified by hashing a list of candidates and comparing the results. That is why hashes of passwords should be combined with a salt and a slow algorithm designed for passwords.
Which SHA algorithm should I use?
For most checksums and integrity checks, SHA-256 is a widely used choice that balances length and compatibility. SHA-512 produces a longer digest and often performs well on 64-bit processors. SHA-384 is a variant of SHA-512 with a shorter output. SHA-1 is older and no longer recommended where collision resistance matters, so prefer SHA-256 or stronger for new work.
How do I verify a downloaded file with a hash?
Generate the hash of the downloaded file using the same algorithm the publisher lists, then compare the two values. Matching digests mean the file is identical to the one that was hashed. If they differ, the download may be incomplete or corrupted, so download it again. Always check the algorithm first, since a SHA-256 value will never match a SHA-512 value.
Is SHA-256 the same as encryption?
No. Hashing is a one-way process that produces a fixed-length fingerprint, whereas encryption is reversible with the correct key. A hash does not hide content in a way that can be undone, and it does not need a key. Hashing is used for integrity and comparison, while encryption is used to protect data that must later be read again.
Does the hash generator support MD5?
No. This generator offers SHA-1, SHA-256, SHA-384 and SHA-512 only. MD5 is an older algorithm with known collision weaknesses, so it is less suitable for integrity checks where tampering matters. Some legacy downloads still publish only MD5 values, so ask the publisher for a SHA-256 value where possible.