Practical guide
How to use Hash Generator
Hash Generator calculates SHA-256, SHA-384, or SHA-512 digests for text and local files. Digests help compare files, check transfer integrity, and reproduce values supplied by a trusted publisher.
Step by step
- Enter text or select one local file.
- Choose the expected SHA algorithm.
- Calculate the hexadecimal digest and compare every character with the trusted reference.
Example
Input
SHA-256 of: helloResult
2cf24dba5fb0a30e…938b9824How it works
The browser's Web Crypto API reads the input bytes and calculates a one-way cryptographic digest. The hexadecimal output is a representation of that digest, not the original content.
Important limitations
- A matching hash proves byte equality only when the reference hash itself is trusted.
- General hashes are not a safe replacement for a password-hashing scheme such as Argon2, scrypt, or bcrypt.
Frequently asked questions
Can a SHA hash be reversed?
There is no direct reversal operation, but weak or predictable inputs can still be guessed and compared.
Why does the same-looking text have a different hash?
Encoding, line endings, invisible whitespace, and Unicode normalization can change the underlying bytes.